Class: Cufinder::PersonLocation

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

Overview

Person location information

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = {}) ⇒ PersonLocation

Returns a new instance of PersonLocation.



92
93
94
95
96
# File 'lib/cufinder_ruby/types.rb', line 92

def initialize(data = {})
  @country = data["country"]
  @state = data["state"]
  @city = data["city"]
end

Instance Attribute Details

#cityObject

Returns the value of attribute city.



90
91
92
# File 'lib/cufinder_ruby/types.rb', line 90

def city
  @city
end

#countryObject

Returns the value of attribute country.



90
91
92
# File 'lib/cufinder_ruby/types.rb', line 90

def country
  @country
end

#stateObject

Returns the value of attribute state.



90
91
92
# File 'lib/cufinder_ruby/types.rb', line 90

def state
  @state
end