Class: Kml::Path::Result
- Inherits:
-
Object
- Object
- Kml::Path::Result
- Defined in:
- lib/kml/path/result.rb
Instance Attribute Summary collapse
-
#coordinates ⇒ Object
readonly
Returns the value of attribute coordinates.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #failure? ⇒ Boolean
-
#initialize(success:, name:, coordinates:, error:) ⇒ Result
constructor
A new instance of Result.
- #success? ⇒ Boolean
Constructor Details
#initialize(success:, name:, coordinates:, error:) ⇒ Result
Returns a new instance of Result.
8 9 10 11 12 13 |
# File 'lib/kml/path/result.rb', line 8 def initialize(success:, name:, coordinates:, error:) @success = success @name = name @coordinates = coordinates @error = error end |
Instance Attribute Details
#coordinates ⇒ Object (readonly)
Returns the value of attribute coordinates.
6 7 8 |
# File 'lib/kml/path/result.rb', line 6 def coordinates @coordinates end |
#error ⇒ Object (readonly)
Returns the value of attribute error.
6 7 8 |
# File 'lib/kml/path/result.rb', line 6 def error @error end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/kml/path/result.rb', line 6 def name @name end |
Instance Method Details
#failure? ⇒ Boolean
19 20 21 |
# File 'lib/kml/path/result.rb', line 19 def failure? !success? end |
#success? ⇒ Boolean
15 16 17 |
# File 'lib/kml/path/result.rb', line 15 def success? @success end |