Class: Dina::GeographicSource

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeGeographicSource

Returns a new instance of GeographicSource.



11
12
# File 'lib/dina/components/geographic_source.rb', line 11

def initialize
end

Instance Attribute Details

#countryObject

Returns the value of attribute country.



8
9
10
# File 'lib/dina/components/geographic_source.rb', line 8

def country
  @country
end

#customGeographicPlaceObject

Returns the value of attribute customGeographicPlace.



4
5
6
# File 'lib/dina/components/geographic_source.rb', line 4

def customGeographicPlace
  @customGeographicPlace
end

#higherGeographicPlacesObject

Returns the value of attribute higherGeographicPlaces.



6
7
8
# File 'lib/dina/components/geographic_source.rb', line 6

def higherGeographicPlaces
  @higherGeographicPlaces
end

#recordedOnObject

Returns the value of attribute recordedOn.



9
10
11
# File 'lib/dina/components/geographic_source.rb', line 9

def recordedOn
  @recordedOn
end

#selectedGeographicPlaceObject

Returns the value of attribute selectedGeographicPlace.



5
6
7
# File 'lib/dina/components/geographic_source.rb', line 5

def selectedGeographicPlace
  @selectedGeographicPlace
end

#sourceUrlObject

Returns the value of attribute sourceUrl.



3
4
5
# File 'lib/dina/components/geographic_source.rb', line 3

def sourceUrl
  @sourceUrl
end

#stateProvinceObject

Returns the value of attribute stateProvince.



7
8
9
# File 'lib/dina/components/geographic_source.rb', line 7

def stateProvince
  @stateProvince
end

Instance Method Details

#to_hashObject



14
15
16
17
18
# File 'lib/dina/components/geographic_source.rb', line 14

def to_hash
  hash = {}
  instance_variables.each { |var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
  hash.deep_symbolize_keys
end