Class: Rapa::SimilarProduct

Inherits:
Object
  • Object
show all
Defined in:
lib/rapa/similar_product.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source) ⇒ SimilarProduct

Returns a new instance of SimilarProduct.

Parameters:

  • source (Hash)


7
8
9
# File 'lib/rapa/similar_product.rb', line 7

def initialize(source)
  @source = source
end

Instance Attribute Details

#sourceHash (readonly)

Returns:

  • (Hash)


4
5
6
# File 'lib/rapa/similar_product.rb', line 4

def source
  @source
end

Instance Method Details

#asinString

Returns:

  • (String)


12
13
14
# File 'lib/rapa/similar_product.rb', line 12

def asin
  source["ASIN"]
end

#titleString

Returns:

  • (String)


17
18
19
# File 'lib/rapa/similar_product.rb', line 17

def title
  source["Title"]
end