Class: Cufinder::CloLocation
- Inherits:
-
Object
- Object
- Cufinder::CloLocation
- Defined in:
- lib/cufinder_ruby/types.rb
Overview
CLO Location
Instance Attribute Summary collapse
-
#city ⇒ Object
Returns the value of attribute city.
-
#country ⇒ Object
Returns the value of attribute country.
-
#latitude ⇒ Object
Returns the value of attribute latitude.
-
#line1 ⇒ Object
Returns the value of attribute line1.
-
#line2 ⇒ Object
Returns the value of attribute line2.
-
#longitude ⇒ Object
Returns the value of attribute longitude.
-
#postal_code ⇒ Object
Returns the value of attribute postal_code.
-
#state ⇒ Object
Returns the value of attribute state.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ CloLocation
constructor
A new instance of CloLocation.
Constructor Details
#initialize(data = {}) ⇒ CloLocation
Returns a new instance of CloLocation.
474 475 476 477 478 479 480 481 482 483 |
# File 'lib/cufinder_ruby/types.rb', line 474 def initialize(data = {}) @country = data["country"] @state = data["state"] @city = data["city"] @postal_code = data["postal_code"] @line1 = data["line1"] @line2 = data["line2"] @latitude = data["latitude"] @longitude = data["longitude"] end |
Instance Attribute Details
#city ⇒ Object
Returns the value of attribute city.
472 473 474 |
# File 'lib/cufinder_ruby/types.rb', line 472 def city @city end |
#country ⇒ Object
Returns the value of attribute country.
472 473 474 |
# File 'lib/cufinder_ruby/types.rb', line 472 def country @country end |
#latitude ⇒ Object
Returns the value of attribute latitude.
472 473 474 |
# File 'lib/cufinder_ruby/types.rb', line 472 def latitude @latitude end |
#line1 ⇒ Object
Returns the value of attribute line1.
472 473 474 |
# File 'lib/cufinder_ruby/types.rb', line 472 def line1 @line1 end |
#line2 ⇒ Object
Returns the value of attribute line2.
472 473 474 |
# File 'lib/cufinder_ruby/types.rb', line 472 def line2 @line2 end |
#longitude ⇒ Object
Returns the value of attribute longitude.
472 473 474 |
# File 'lib/cufinder_ruby/types.rb', line 472 def longitude @longitude end |
#postal_code ⇒ Object
Returns the value of attribute postal_code.
472 473 474 |
# File 'lib/cufinder_ruby/types.rb', line 472 def postal_code @postal_code end |
#state ⇒ Object
Returns the value of attribute state.
472 473 474 |
# File 'lib/cufinder_ruby/types.rb', line 472 def state @state end |