Class: Crefo::Service::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/crefo/service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = attachments
  @error = error
end

Instance Attribute Details

#attachmentsObject (readonly)

Returns the value of attribute attachments.



35
36
37
# File 'lib/crefo/service.rb', line 35

def attachments
  @attachments
end

#bodyObject (readonly)

Returns the value of attribute body.



35
36
37
# File 'lib/crefo/service.rb', line 35

def body
  @body
end

#errorObject (readonly)

Returns the value of attribute error.



35
36
37
# File 'lib/crefo/service.rb', line 35

def error
  @error
end

#resultObject (readonly)

Returns the value of attribute result.



35
36
37
# File 'lib/crefo/service.rb', line 35

def result
  @result
end