Class: Heater::Point

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Point

Returns a new instance of Point.



5
6
7
8
9
# File 'lib/heater/point.rb', line 5

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

Instance Attribute Details

#latObject

Returns the value of attribute lat.



3
4
5
# File 'lib/heater/point.rb', line 3

def lat
  @lat
end

#lngObject

Returns the value of attribute lng.



3
4
5
# File 'lib/heater/point.rb', line 3

def lng
  @lng
end