Class: GroopBuyr::City

Inherits:
Object
  • Object
show all
Defined in:
lib/groopbuyr.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ City

Returns a new instance of City.



38
39
40
41
42
43
44
# File 'lib/groopbuyr.rb', line 38

def initialize(options = {})
  options.each do |k, v|
    if respond_to?(k.to_sym)
      send("#{k}=".to_sym, v)
    end
  end
end

Instance Attribute Details

#cityCodeObject

Returns the value of attribute cityCode.



36
37
38
# File 'lib/groopbuyr.rb', line 36

def cityCode
  @cityCode
end

#cityNameObject

Returns the value of attribute cityName.



36
37
38
# File 'lib/groopbuyr.rb', line 36

def cityName
  @cityName
end