Class: Dina::GeographicPlaceNameSourceDetail

Inherits:
Object
  • Object
show all
Defined in:
lib/dina/components/geographic_place_name_source_detail.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#countryObject

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

#customGeographicPlaceObject

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

#higherGeographicPlacesObject

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

#recordedOnObject

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

#selectedGeographicPlaceObject

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

#sourceUrlObject

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

#stateProvinceObject

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_hashObject



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