Class: Interior::Response
- Inherits:
-
Object
- Object
- Interior::Response
- Defined in:
- lib/interior/response.rb
Instance Attribute Summary collapse
-
#latitude ⇒ Object
readonly
Returns the value of attribute latitude.
-
#longitude ⇒ Object
readonly
Returns the value of attribute longitude.
Instance Method Summary collapse
-
#initialize(latitude = nil, longitude = nil, success = false) ⇒ Response
constructor
A new instance of Response.
- #success? ⇒ Boolean
Constructor Details
#initialize(latitude = nil, longitude = nil, success = false) ⇒ Response
Returns a new instance of Response.
5 6 7 8 9 |
# File 'lib/interior/response.rb', line 5 def initialize(latitude = nil, longitude = nil, success = false) @latitude = latitude @longitude = longitude @success = success end |
Instance Attribute Details
#latitude ⇒ Object (readonly)
Returns the value of attribute latitude.
3 4 5 |
# File 'lib/interior/response.rb', line 3 def latitude @latitude end |
#longitude ⇒ Object (readonly)
Returns the value of attribute longitude.
3 4 5 |
# File 'lib/interior/response.rb', line 3 def longitude @longitude end |
Instance Method Details
#success? ⇒ Boolean
11 12 13 |
# File 'lib/interior/response.rb', line 11 def success? @success end |