Class: BestBuy::Image

Inherits:
Object
  • Object
show all
Defined in:
lib/best_buy/models/image.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#heightObject (readonly)

Returns the value of attribute height.



5
6
7
# File 'lib/best_buy/models/image.rb', line 5

def height
  @height
end

#hrefObject (readonly)

Returns the value of attribute href.



5
6
7
# File 'lib/best_buy/models/image.rb', line 5

def href
  @href
end

#primaryObject (readonly)

Returns the value of attribute primary.



5
6
7
# File 'lib/best_buy/models/image.rb', line 5

def primary
  @primary
end

#relObject (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_measureObject (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

#widthObject (readonly)

Returns the value of attribute width.



5
6
7
# File 'lib/best_buy/models/image.rb', line 5

def width
  @width
end