Class: Maidcafe::Location
- Inherits:
-
Object
- Object
- Maidcafe::Location
- Defined in:
- lib/ruby-maidcafe.rb
Instance Attribute Summary collapse
-
#latitude ⇒ Object
Returns the value of attribute latitude.
-
#longitude ⇒ Object
Returns the value of attribute longitude.
Instance Method Summary collapse
-
#initialize(lat, lng) ⇒ Location
constructor
A new instance of Location.
Constructor Details
#initialize(lat, lng) ⇒ Location
Returns a new instance of Location.
102 103 104 105 |
# File 'lib/ruby-maidcafe.rb', line 102 def initialize(lat, lng) @latitude = lat @longitude = lng end |
Instance Attribute Details
#latitude ⇒ Object
Returns the value of attribute latitude.
101 102 103 |
# File 'lib/ruby-maidcafe.rb', line 101 def latitude @latitude end |
#longitude ⇒ Object
Returns the value of attribute longitude.
101 102 103 |
# File 'lib/ruby-maidcafe.rb', line 101 def longitude @longitude end |