Class: Icalendar::Geo

Inherits:
Base show all
Defined in:
lib/icalendar/component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

debug, quiet

Constructor Details

#initialize(lat, long) ⇒ Geo

Returns a new instance of Geo.



19
20
21
22
# File 'lib/icalendar/component.rb', line 19

def initialize(lat, long)
  @lat = lat
  @long = long
end

Instance Attribute Details

#latitudeObject Also known as: lat

Returns the value of attribute latitude.



15
16
17
# File 'lib/icalendar/component.rb', line 15

def latitude
  @latitude
end

#longitudeObject Also known as: long

Returns the value of attribute longitude.



15
16
17
# File 'lib/icalendar/component.rb', line 15

def longitude
  @longitude
end

Instance Method Details

#to_icalObject



24
25
26
# File 'lib/icalendar/component.rb', line 24

def to_ical
  "#{@lat.to_ical};#{@long.to_ical}"
end