Class: Dina::GeographicPlaceNameSourceDetail
- Inherits:
-
Object
- Object
- Dina::GeographicPlaceNameSourceDetail
- Defined in:
- lib/dina/components/geographic_place_name_source_detail.rb
Instance Attribute Summary collapse
-
#country ⇒ Object
Returns the value of attribute country.
-
#customGeographicPlace ⇒ Object
Returns the value of attribute customGeographicPlace.
-
#higherGeographicPlaces ⇒ Object
Returns the value of attribute higherGeographicPlaces.
-
#recordedOn ⇒ Object
Returns the value of attribute recordedOn.
-
#selectedGeographicPlace ⇒ Object
Returns the value of attribute selectedGeographicPlace.
-
#sourceUrl ⇒ Object
Returns the value of attribute sourceUrl.
-
#stateProvince ⇒ Object
Returns the value of attribute stateProvince.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ GeographicPlaceNameSourceDetail
constructor
A new instance of GeographicPlaceNameSourceDetail.
- #to_hash ⇒ Object
Constructor Details
#initialize(params = {}) ⇒ GeographicPlaceNameSourceDetail
Returns a new instance of GeographicPlaceNameSourceDetail.
11 12 13 14 15 16 |
# File 'lib/dina/components/geographic_place_name_source_detail.rb', line 11 def initialize(params = {}) params.each do |key, value| setter = "#{key}=" send(setter, value) if respond_to?(setter.to_sym, false) end end |
Instance Attribute Details
#country ⇒ Object
Returns the value of attribute country.
8 9 10 |
# File 'lib/dina/components/geographic_place_name_source_detail.rb', line 8 def country @country end |
#customGeographicPlace ⇒ Object
Returns the value of attribute customGeographicPlace.
4 5 6 |
# File 'lib/dina/components/geographic_place_name_source_detail.rb', line 4 def customGeographicPlace @customGeographicPlace end |
#higherGeographicPlaces ⇒ Object
Returns the value of attribute higherGeographicPlaces.
6 7 8 |
# File 'lib/dina/components/geographic_place_name_source_detail.rb', line 6 def higherGeographicPlaces @higherGeographicPlaces end |
#recordedOn ⇒ Object
Returns the value of attribute recordedOn.
9 10 11 |
# File 'lib/dina/components/geographic_place_name_source_detail.rb', line 9 def recordedOn @recordedOn end |
#selectedGeographicPlace ⇒ Object
Returns the value of attribute selectedGeographicPlace.
5 6 7 |
# File 'lib/dina/components/geographic_place_name_source_detail.rb', line 5 def selectedGeographicPlace @selectedGeographicPlace end |
#sourceUrl ⇒ Object
Returns the value of attribute sourceUrl.
3 4 5 |
# File 'lib/dina/components/geographic_place_name_source_detail.rb', line 3 def sourceUrl @sourceUrl end |
#stateProvince ⇒ Object
Returns the value of attribute stateProvince.
7 8 9 |
# File 'lib/dina/components/geographic_place_name_source_detail.rb', line 7 def stateProvince @stateProvince end |
Instance Method Details
#to_hash ⇒ Object
18 19 20 21 22 |
# File 'lib/dina/components/geographic_place_name_source_detail.rb', line 18 def to_hash hash = {} instance_variables.each { |var| hash[var.to_s.delete('@')] = instance_variable_get(var) } hash.deep_symbolize_keys end |