Class: DropboxApi::Results::Search::Match
- Inherits:
-
Object
- Object
- DropboxApi::Results::Search::Match
- Defined in:
- lib/dropbox_api/results/search/match.rb
Instance Method Summary collapse
-
#initialize(data) ⇒ Match
constructor
A new instance of Match.
- #match_type ⇒ Object
- #resource ⇒ Object
Constructor Details
#initialize(data) ⇒ Match
Returns a new instance of Match.
4 5 6 |
# File 'lib/dropbox_api/results/search/match.rb', line 4 def initialize(data) @data = data end |
Instance Method Details
#match_type ⇒ Object
8 9 10 |
# File 'lib/dropbox_api/results/search/match.rb', line 8 def match_type @data['match_type'] end |
#resource ⇒ Object
12 13 14 |
# File 'lib/dropbox_api/results/search/match.rb', line 12 def resource @resource ||= DropboxApi::Metadata::Resource.new @data['metadata'] end |