Class: Neverland::Parameters
- Inherits:
-
Object
- Object
- Neverland::Parameters
- Defined in:
- lib/neverland/parameter_extractor.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#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, error_code = nil) ⇒ Parameters
constructor
A new instance of Parameters.
Constructor Details
#initialize(latitude = nil, longitude = nil, error_code = nil) ⇒ Parameters
Returns a new instance of Parameters.
41 42 43 44 45 |
# File 'lib/neverland/parameter_extractor.rb', line 41 def initialize(latitude = nil, longitude = nil, error_code = nil) @latitude = latitude @longitude = longitude @error_code = error_code end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
39 40 41 |
# File 'lib/neverland/parameter_extractor.rb', line 39 def error_code @error_code end |
#latitude ⇒ Object (readonly)
Returns the value of attribute latitude.
39 40 41 |
# File 'lib/neverland/parameter_extractor.rb', line 39 def latitude @latitude end |
#longitude ⇒ Object (readonly)
Returns the value of attribute longitude.
39 40 41 |
# File 'lib/neverland/parameter_extractor.rb', line 39 def longitude @longitude end |