Class: Ecoportal::API::V2::Page::Component::GeoCoordinates
- Inherits:
-
Common::Content::DoubleModel
- Object
- Common::BaseModel
- Common::Content::DoubleModel
- Ecoportal::API::V2::Page::Component::GeoCoordinates
- Defined in:
- lib/ecoportal/api/v2/page/component/geo_coordinates.rb
Constant Summary
Constants included from Common::Content::DoubleModel::Diffable
Common::Content::DoubleModel::Diffable::DIFF_CLASS
Constants included from Common::Content::DoubleModel::Base
Common::Content::DoubleModel::Base::NOT_USED
Instance Attribute Summary
Attributes included from Common::Content::DoubleModel::Parented
Instance Method Summary collapse
Methods inherited from Common::Content::DoubleModel
Methods included from Common::Content::DoubleModel::Diffable
Methods included from Common::Content::Includer
Constructor Details
This class inherits a constructor from Ecoportal::API::Common::Content::DoubleModel
Instance Method Details
#empty? ⇒ Boolean
9 10 11 |
# File 'lib/ecoportal/api/v2/page/component/geo_coordinates.rb', line 9 def empty? !lat || !lon end |
#to_s ⇒ Object
13 14 15 |
# File 'lib/ecoportal/api/v2/page/component/geo_coordinates.rb', line 13 def to_s "#{lat},#{lon}" if lat & lon end |