Class: Crefo::Service::Result
- Inherits:
-
Object
- Object
- Crefo::Service::Result
- Defined in:
- lib/crefo/service.rb
Instance Attribute Summary collapse
-
#attachments ⇒ Object
readonly
Returns the value of attribute attachments.
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(result: raise(ArgumentError), body: raise(ArgumentError), attachments: raise(ArgumentError), error: raise(ArgumentError)) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(result: raise(ArgumentError), body: raise(ArgumentError), attachments: raise(ArgumentError), error: raise(ArgumentError)) ⇒ Result
Returns a new instance of Result.
37 38 39 40 41 42 |
# File 'lib/crefo/service.rb', line 37 def initialize(result: raise(ArgumentError), body: raise(ArgumentError), attachments: raise(ArgumentError), error: raise(ArgumentError)) @result = result @body = body @attachments = @error = error end |
Instance Attribute Details
#attachments ⇒ Object (readonly)
Returns the value of attribute attachments.
35 36 37 |
# File 'lib/crefo/service.rb', line 35 def @attachments end |
#body ⇒ Object (readonly)
Returns the value of attribute body.
35 36 37 |
# File 'lib/crefo/service.rb', line 35 def body @body end |
#error ⇒ Object (readonly)
Returns the value of attribute error.
35 36 37 |
# File 'lib/crefo/service.rb', line 35 def error @error end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
35 36 37 |
# File 'lib/crefo/service.rb', line 35 def result @result end |