Class: DropboxApi::Results::Search::Match

Inherits:
Object
  • Object
show all
Defined in:
lib/dropbox_api/results/search/match.rb

Instance Method Summary collapse

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_typeObject



8
9
10
# File 'lib/dropbox_api/results/search/match.rb', line 8

def match_type
  @data['match_type']
end

#resourceObject



12
13
14
# File 'lib/dropbox_api/results/search/match.rb', line 12

def resource
  @resource ||= DropboxApi::Metadata::Resource.new @data['metadata']
end