Class: ActivityStreams::Object::Place::GeoLocation

Inherits:
Base
  • Object
show all
Defined in:
lib/activitystreams/object/place.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, #validate_attributes!

Methods included from Validator

#to_float, #to_integer, #to_iri, #to_time, #validate_attribute!

Constructor Details

This class inherits a constructor from ActivityStreams::Base

Instance Method Details

#to_sObject Also known as: as_json



9
10
11
# File 'lib/activitystreams/object/place.rb', line 9

def to_s
  "+" + [latitude, longitude, altitude].compact.join('+')
end