Class: Active::Services::AddressDeprecated
- Inherits:
-
Object
- Object
- Active::Services::AddressDeprecated
- Defined in:
- lib/services/address.rb
Instance Attribute Summary collapse
-
#city ⇒ Object
Returns the value of attribute city.
-
#country ⇒ Object
Returns the value of attribute country.
-
#lat ⇒ Object
Returns the value of attribute lat.
-
#lng ⇒ Object
Returns the value of attribute lng.
-
#name ⇒ Object
Returns the value of attribute name.
-
#state ⇒ Object
Returns the value of attribute state.
-
#zip ⇒ Object
Returns the value of attribute zip.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ AddressDeprecated
constructor
A new instance of AddressDeprecated.
Constructor Details
#initialize(data = {}) ⇒ AddressDeprecated
Returns a new instance of AddressDeprecated.
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/services/address.rb', line 5 def initialize(data={}) @name = data[:name] @state = data[:state] @city = data[:city] @state = data[:state] @zip = data[:zip] @lat = data[:lat] @lng = data[:lng] @country = data[:country] end |
Instance Attribute Details
#city ⇒ Object
Returns the value of attribute city.
4 5 6 |
# File 'lib/services/address.rb', line 4 def city @city end |
#country ⇒ Object
Returns the value of attribute country.
4 5 6 |
# File 'lib/services/address.rb', line 4 def country @country end |
#lat ⇒ Object
Returns the value of attribute lat.
4 5 6 |
# File 'lib/services/address.rb', line 4 def lat @lat end |
#lng ⇒ Object
Returns the value of attribute lng.
4 5 6 |
# File 'lib/services/address.rb', line 4 def lng @lng end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/services/address.rb', line 4 def name @name end |
#state ⇒ Object
Returns the value of attribute state.
4 5 6 |
# File 'lib/services/address.rb', line 4 def state @state end |
#zip ⇒ Object
Returns the value of attribute zip.
4 5 6 |
# File 'lib/services/address.rb', line 4 def zip @zip end |