Class: DailyDealr::City
- Inherits:
-
Object
- Object
- DailyDealr::City
- Defined in:
- lib/dailydealr.rb
Instance Attribute Summary collapse
-
#cityCode ⇒ Object
readonly
Returns the value of attribute cityCode.
-
#cityName ⇒ Object
readonly
Returns the value of attribute cityName.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ City
constructor
A new instance of City.
Constructor Details
#initialize(options = {}) ⇒ City
Returns a new instance of City.
38 39 40 41 42 43 44 |
# File 'lib/dailydealr.rb', line 38 def initialize( = {}) .each do |k, v| if respond_to?(k.to_sym) send("#{k}=".to_sym, v) end end end |
Instance Attribute Details
#cityCode ⇒ Object
Returns the value of attribute cityCode.
36 37 38 |
# File 'lib/dailydealr.rb', line 36 def cityCode @cityCode end |
#cityName ⇒ Object
Returns the value of attribute cityName.
36 37 38 |
# File 'lib/dailydealr.rb', line 36 def cityName @cityName end |