Sha256: 03e53a556d7cd4805a51edaf495e3370a1d3596bb51361ef72a5a07502983271

Contents?: true

Size: 586 Bytes

Versions: 4

Compression:

Stored size: 586 Bytes

Contents

# Class BestMatchResponse represents server response on +best_match+ Search API
# request. Server response is sent to initializer which creates objects with
# attributes +category+, +numResults+ accessible via getters:
# * +category+
# * +num_results+
# * +numResults+
#
# Examples:
#
#  response = BestMatchResponse.new("category" => "VAUT", "numResults" => 20)
#  response.category     # => "VAUT"
#  response.numResults   # => 20
#  response.num_results  # => 20
#
class BestMatchResponse < Struct.new(:category, :numResults) do
    def num_results
      numResults
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
threetaps-client-1.0.2 lib/dto/search/best_match_response.rb
threetaps-client-1.0.1 lib/dto/search/best_match_response.rb
threetaps-client-1.0.0 lib/dto/search/best_match_response.rb
threetaps-client-0.5.1 lib/dto/search/best_match_response.rb