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.
3 4 5 |
# File 'lib/dropbox_api/results/search/match.rb', line 3 def initialize(data) @data = data end |
Instance Method Details
#match_type ⇒ Object
7 8 9 |
# File 'lib/dropbox_api/results/search/match.rb', line 7 def match_type @data["match_type"] end |
#resource ⇒ Object
11 12 13 |
# File 'lib/dropbox_api/results/search/match.rb', line 11 def resource @resource ||= DropboxApi::Metadata::Resource.new @data["metadata"] end |