Class: BestBuy::Address
- Inherits:
-
Object
- Object
- BestBuy::Address
- Defined in:
- lib/best_buy/models/address.rb
Overview
:reek:TooManyInstanceVariables :reek:UncommunicativeVariableName
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#address2 ⇒ Object
readonly
Returns the value of attribute address2.
-
#city ⇒ Object
readonly
Returns the value of attribute city.
-
#country ⇒ Object
readonly
Returns the value of attribute country.
-
#full_postal_code ⇒ Object
readonly
Returns the value of attribute full_postal_code.
-
#gmt_offset ⇒ Object
readonly
Returns the value of attribute gmt_offset.
-
#lat ⇒ Object
readonly
Returns the value of attribute lat.
-
#lng ⇒ Object
readonly
Returns the value of attribute lng.
-
#postal_code ⇒ Object
readonly
Returns the value of attribute postal_code.
-
#region ⇒ Object
readonly
Returns the value of attribute region.
Instance Method Summary collapse
-
#initialize(init_params) ⇒ Address
constructor
A new instance of Address.
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
#address ⇒ Object (readonly)
Returns the value of attribute address.
7 8 9 |
# File 'lib/best_buy/models/address.rb', line 7 def address @address end |
#address2 ⇒ Object (readonly)
Returns the value of attribute address2.
7 8 9 |
# File 'lib/best_buy/models/address.rb', line 7 def address2 @address2 end |
#city ⇒ Object (readonly)
Returns the value of attribute city.
7 8 9 |
# File 'lib/best_buy/models/address.rb', line 7 def city @city end |
#country ⇒ Object (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_code ⇒ Object (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_offset ⇒ Object (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 |
#lat ⇒ Object (readonly)
Returns the value of attribute lat.
7 8 9 |
# File 'lib/best_buy/models/address.rb', line 7 def lat @lat end |
#lng ⇒ Object (readonly)
Returns the value of attribute lng.
7 8 9 |
# File 'lib/best_buy/models/address.rb', line 7 def lng @lng end |
#postal_code ⇒ Object (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 |
#region ⇒ Object (readonly)
Returns the value of attribute region.
7 8 9 |
# File 'lib/best_buy/models/address.rb', line 7 def region @region end |