Class: TocDoc::Place
Overview
Represents a practice location returned inside a profile response.
All fields are accessible via dot-notation inherited from Resource. Nested arrays (+opening_hours+, +stations+) are returned as raw arrays of hashes.
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
-
#coordinates ⇒ Array(Float, Float)
Returns the geographic coordinates of the place.
Methods inherited from Resource
#==, #[], #[]=, #attribute_names, #initialize, #inspect, main_attrs, #method_missing, normalize_attrs, #to_h, #to_json
Constructor Details
This class inherits a constructor from TocDoc::Resource
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class TocDoc::Resource
Instance Method Details
#coordinates ⇒ Array(Float, Float)
Returns the geographic coordinates of the place.
38 39 40 |
# File 'lib/toc_doc/models/place.rb', line 38 def coordinates [latitude, longitude] end |