Class: PR::Pin::API::Result
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- PR::Pin::API::Result
- Defined in:
- lib/pr/pin/api/result.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
- #error? ⇒ Boolean
-
#initialize(result, relation) ⇒ Result
constructor
A new instance of Result.
- #inspect ⇒ Object
- #success? ⇒ Boolean
Constructor Details
#initialize(result, relation) ⇒ Result
Returns a new instance of Result.
14 15 16 17 |
# File 'lib/pr/pin/api/result.rb', line 14 def initialize(result, relation) @__relation__ = relation super(result) end |
Class Method Details
Instance Method Details
#error? ⇒ Boolean
23 24 25 |
# File 'lib/pr/pin/api/result.rb', line 23 def error? false end |
#inspect ⇒ Object
27 28 29 |
# File 'lib/pr/pin/api/result.rb', line 27 def inspect "#<#{self.class} - #{__getobj__}>" end |
#success? ⇒ Boolean
19 20 21 |
# File 'lib/pr/pin/api/result.rb', line 19 def success? true end |