Class: ActivityStreams::Object::Place::GeoLocation
- Defined in:
- lib/activitystreams/object/place.rb
Instance Method Summary collapse
- #to_s ⇒ Object (also: #as_json)
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_s ⇒ Object 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 |