Class: Discogs::Search

Inherits:
Resource show all
Defined in:
lib/wrapper/resources/search.rb

Overview

Represents a search resultset in the Discogs API.

Defined Under Namespace

Classes: Result

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Resource

#build!, #build_with_resp!, #initialize, #original_content

Methods included from ResourceMappings

included

Constructor Details

This class inherits a constructor from Discogs::Resource

Instance Attribute Details

#endObject

Returns the value of attribute end.



7
8
9
# File 'lib/wrapper/resources/search.rb', line 7

def end
  @end
end

#exactresultsObject

Returns the value of attribute exactresults.



7
8
9
# File 'lib/wrapper/resources/search.rb', line 7

def exactresults
  @exactresults
end

#numResultsObject

Returns the value of attribute numResults.



7
8
9
# File 'lib/wrapper/resources/search.rb', line 7

def numResults
  @numResults
end

#searchresultsObject

Returns the value of attribute searchresults.



7
8
9
# File 'lib/wrapper/resources/search.rb', line 7

def searchresults
  @searchresults
end

#startObject

Returns the value of attribute start.



7
8
9
# File 'lib/wrapper/resources/search.rb', line 7

def start
  @start
end

Instance Method Details

#total_resultsObject



13
14
15
# File 'lib/wrapper/resources/search.rb', line 13

def total_results
  self.numResults
end