Class: Cufinder::PersonLocation
- Inherits:
-
Object
- Object
- Cufinder::PersonLocation
- Defined in:
- lib/cufinder_ruby/types.rb
Overview
Person location information
Instance Attribute Summary collapse
-
#city ⇒ Object
Returns the value of attribute city.
-
#country ⇒ Object
Returns the value of attribute country.
-
#state ⇒ Object
Returns the value of attribute state.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ PersonLocation
constructor
A new instance of PersonLocation.
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
#city ⇒ Object
Returns the value of attribute city.
90 91 92 |
# File 'lib/cufinder_ruby/types.rb', line 90 def city @city end |
#country ⇒ Object
Returns the value of attribute country.
90 91 92 |
# File 'lib/cufinder_ruby/types.rb', line 90 def country @country end |
#state ⇒ Object
Returns the value of attribute state.
90 91 92 |
# File 'lib/cufinder_ruby/types.rb', line 90 def state @state end |