Class: AdWords::City2DMA
- Inherits:
-
Struct
- Object
- Struct
- AdWords::City2DMA
- Defined in:
- lib/adwords_location/city_2_dma.rb
Instance Attribute Summary collapse
-
#city ⇒ Object
Returns the value of attribute city.
-
#criteria_id ⇒ Object
Returns the value of attribute criteria_id.
-
#dma_region ⇒ Object
Returns the value of attribute dma_region.
-
#dma_region_code ⇒ Object
Returns the value of attribute dma_region_code.
-
#state ⇒ Object
Returns the value of attribute state.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#city ⇒ Object
Returns the value of attribute city
5 6 7 |
# File 'lib/adwords_location/city_2_dma.rb', line 5 def city @city end |
#criteria_id ⇒ Object
Returns the value of attribute criteria_id
5 6 7 |
# File 'lib/adwords_location/city_2_dma.rb', line 5 def criteria_id @criteria_id end |
#dma_region ⇒ Object
Returns the value of attribute dma_region
5 6 7 |
# File 'lib/adwords_location/city_2_dma.rb', line 5 def dma_region @dma_region end |
#dma_region_code ⇒ Object
Returns the value of attribute dma_region_code
5 6 7 |
# File 'lib/adwords_location/city_2_dma.rb', line 5 def dma_region_code @dma_region_code end |
#state ⇒ Object
Returns the value of attribute state
5 6 7 |
# File 'lib/adwords_location/city_2_dma.rb', line 5 def state @state end |
Class Method Details
Instance Method Details
#==(other) ⇒ Object
7 8 9 |
# File 'lib/adwords_location/city_2_dma.rb', line 7 def ==(other) self.criteria_id == other.criteria_id && self.dma_region_code == other.dma_region_code end |
#description ⇒ Object
11 12 13 |
# File 'lib/adwords_location/city_2_dma.rb', line 11 def description "#{dma_region},#{state}" end |