Class: Cufinder::MainLocation

Inherits:
Object
  • Object
show all
Defined in:
lib/cufinder_ruby/types.rb

Overview

Company main location

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#addressObject

Returns the value of attribute address.



16
17
18
# File 'lib/cufinder_ruby/types.rb', line 16

def address
  @address
end

#cityObject

Returns the value of attribute city.



16
17
18
# File 'lib/cufinder_ruby/types.rb', line 16

def city
  @city
end

#continentObject

Returns the value of attribute continent.



16
17
18
# File 'lib/cufinder_ruby/types.rb', line 16

def continent
  @continent
end

#countryObject

Returns the value of attribute country.



16
17
18
# File 'lib/cufinder_ruby/types.rb', line 16

def country
  @country
end

#geoObject

Returns the value of attribute geo.



16
17
18
# File 'lib/cufinder_ruby/types.rb', line 16

def geo
  @geo
end

#postal_codeObject

Returns the value of attribute postal_code.



16
17
18
# File 'lib/cufinder_ruby/types.rb', line 16

def postal_code
  @postal_code
end

#stateObject

Returns the value of attribute state.



16
17
18
# File 'lib/cufinder_ruby/types.rb', line 16

def state
  @state
end