Class: BestBuy::Image
- Inherits:
-
Object
- Object
- BestBuy::Image
- Defined in:
- lib/best_buy/models/image.rb
Instance Attribute Summary collapse
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#href ⇒ Object
readonly
Returns the value of attribute href.
-
#primary ⇒ Object
readonly
Returns the value of attribute primary.
-
#rel ⇒ Object
readonly
Returns the value of attribute rel.
-
#unit_of_measure ⇒ Object
readonly
Returns the value of attribute unit_of_measure.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(init_params) ⇒ Image
constructor
A new instance of Image.
Constructor Details
#initialize(init_params) ⇒ Image
Returns a new instance of Image.
7 8 9 10 11 12 13 14 |
# File 'lib/best_buy/models/image.rb', line 7 def initialize(init_params) @height = init_params[:height] @href = init_params[:href] @primary = init_params[:primary] @rel = init_params[:rel] @unit_of_measure = init_params[:unit_of_measure] @width = init_params[:width] end |
Instance Attribute Details
#height ⇒ Object (readonly)
Returns the value of attribute height.
5 6 7 |
# File 'lib/best_buy/models/image.rb', line 5 def height @height end |
#href ⇒ Object (readonly)
Returns the value of attribute href.
5 6 7 |
# File 'lib/best_buy/models/image.rb', line 5 def href @href end |
#primary ⇒ Object (readonly)
Returns the value of attribute primary.
5 6 7 |
# File 'lib/best_buy/models/image.rb', line 5 def primary @primary end |
#rel ⇒ Object (readonly)
Returns the value of attribute rel.
5 6 7 |
# File 'lib/best_buy/models/image.rb', line 5 def rel @rel end |
#unit_of_measure ⇒ Object (readonly)
Returns the value of attribute unit_of_measure.
5 6 7 |
# File 'lib/best_buy/models/image.rb', line 5 def unit_of_measure @unit_of_measure end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
5 6 7 |
# File 'lib/best_buy/models/image.rb', line 5 def width @width end |