Class: Cufinder::MainLocation
- Inherits:
-
Object
- Object
- Cufinder::MainLocation
- Defined in:
- lib/cufinder_ruby/types.rb
Overview
Company main location
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#city ⇒ Object
Returns the value of attribute city.
-
#continent ⇒ Object
Returns the value of attribute continent.
-
#country ⇒ Object
Returns the value of attribute country.
-
#geo ⇒ Object
Returns the value of attribute geo.
-
#postal_code ⇒ Object
Returns the value of attribute postal_code.
-
#state ⇒ Object
Returns the value of attribute state.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ MainLocation
constructor
A new instance of MainLocation.
Constructor Details
#initialize(data = {}) ⇒ MainLocation
Returns a new instance of MainLocation.
18 19 20 21 22 23 24 25 26 |
# File 'lib/cufinder_ruby/types.rb', line 18 def initialize(data = {}) @geo = data["geo"] @country = data["country"] @state = data["state"] @city = data["city"] @address = data["address"] @continent = data["continent"] @postal_code = data["postal_code"] end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
16 17 18 |
# File 'lib/cufinder_ruby/types.rb', line 16 def address @address end |
#city ⇒ Object
Returns the value of attribute city.
16 17 18 |
# File 'lib/cufinder_ruby/types.rb', line 16 def city @city end |
#continent ⇒ Object
Returns the value of attribute continent.
16 17 18 |
# File 'lib/cufinder_ruby/types.rb', line 16 def continent @continent end |
#country ⇒ Object
Returns the value of attribute country.
16 17 18 |
# File 'lib/cufinder_ruby/types.rb', line 16 def country @country end |
#geo ⇒ Object
Returns the value of attribute geo.
16 17 18 |
# File 'lib/cufinder_ruby/types.rb', line 16 def geo @geo end |
#postal_code ⇒ Object
Returns the value of attribute postal_code.
16 17 18 |
# File 'lib/cufinder_ruby/types.rb', line 16 def postal_code @postal_code end |
#state ⇒ Object
Returns the value of attribute state.
16 17 18 |
# File 'lib/cufinder_ruby/types.rb', line 16 def state @state end |