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.


3
4
5
# File 'lib/dropbox_api/results/search/match.rb', line 3

def initialize(data)
  @data = data
end

Instance Method Details

#match_typeObject


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

def match_type
  @data["match_type"]
end

#resourceObject


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

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