Class: BestBuy::Address

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

Overview

:reek:TooManyInstanceVariables :reek:UncommunicativeVariableName

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(init_params) ⇒ Address

Returns a new instance of Address.



10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/best_buy/models/address.rb', line 10

def initialize(init_params)
  @address = init_params[:address]
  @address2 = init_params[:address2]
  @city = init_params[:city]
  @country = init_params[:country]
  @full_postal_code = init_params[:full_postal_code]
  @gmt_offset = init_params[:gmt_offset]
  @lat = init_params[:lat]
  @lng = init_params[:lng]
  @postal_code = init_params[:postal_code]
  @region = init_params[:region]
end

Instance Attribute Details

#addressObject (readonly)

Returns the value of attribute address.



7
8
9
# File 'lib/best_buy/models/address.rb', line 7

def address
  @address
end

#address2Object (readonly)

Returns the value of attribute address2.



7
8
9
# File 'lib/best_buy/models/address.rb', line 7

def address2
  @address2
end

#cityObject (readonly)

Returns the value of attribute city.



7
8
9
# File 'lib/best_buy/models/address.rb', line 7

def city
  @city
end

#countryObject (readonly)

Returns the value of attribute country.



7
8
9
# File 'lib/best_buy/models/address.rb', line 7

def country
  @country
end

#full_postal_codeObject (readonly)

Returns the value of attribute full_postal_code.



7
8
9
# File 'lib/best_buy/models/address.rb', line 7

def full_postal_code
  @full_postal_code
end

#gmt_offsetObject (readonly)

Returns the value of attribute gmt_offset.



7
8
9
# File 'lib/best_buy/models/address.rb', line 7

def gmt_offset
  @gmt_offset
end

#latObject (readonly)

Returns the value of attribute lat.



7
8
9
# File 'lib/best_buy/models/address.rb', line 7

def lat
  @lat
end

#lngObject (readonly)

Returns the value of attribute lng.



7
8
9
# File 'lib/best_buy/models/address.rb', line 7

def lng
  @lng
end

#postal_codeObject (readonly)

Returns the value of attribute postal_code.



7
8
9
# File 'lib/best_buy/models/address.rb', line 7

def postal_code
  @postal_code
end

#regionObject (readonly)

Returns the value of attribute region.



7
8
9
# File 'lib/best_buy/models/address.rb', line 7

def region
  @region
end