Class: DiasporaFederation::Entities::Location
- Inherits:
-
DiasporaFederation::Entity
- Object
- DiasporaFederation::Entity
- DiasporaFederation::Entities::Location
- Defined in:
- lib/diaspora_federation/entities/location.rb
Overview
This entity is used to specify location data and used embedded in a status message.
Constant Summary
Constants inherited from DiasporaFederation::Entity
DiasporaFederation::Entity::ENTITY_NAME_REGEX, DiasporaFederation::Entity::INVALID_XML_REGEX
Instance Attribute Summary collapse
-
#address ⇒ String
readonly
A string describing your location, e.g.
-
#lat ⇒ String
readonly
Geographical latitude of your location.
-
#lng ⇒ String
readonly
Geographical longitude of your location.
Method Summary
Methods inherited from DiasporaFederation::Entity
class_name, entity_class, entity_name, from_hash, from_json, from_xml, #initialize, #to_h, #to_json, #to_s, #to_xml
Methods included from PropertiesDSL
#class_props, #default_values, #entity, #missing_props, #optional_props, #property, #resolv_aliases
Methods included from Logging
Constructor Details
This class inherits a constructor from DiasporaFederation::Entity
Instance Attribute Details
#address ⇒ String (readonly)
A string describing your location, e.g. a city name, a street name, etc
12 |
# File 'lib/diaspora_federation/entities/location.rb', line 12 property :address, :string |
#lat ⇒ String (readonly)
Geographical latitude of your location
17 |
# File 'lib/diaspora_federation/entities/location.rb', line 17 property :lat, :string |
#lng ⇒ String (readonly)
Geographical longitude of your location
22 |
# File 'lib/diaspora_federation/entities/location.rb', line 22 property :lng, :string |