Class: Auspost::Postie::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/auspost/postie.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status) ⇒ Result

Returns a new instance of Result.



71
72
73
74
# File 'lib/auspost/postie.rb', line 71

def initialize(status)
  @status = status
  @errors = [] if !@status
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



69
70
71
# File 'lib/auspost/postie.rb', line 69

def errors
  @errors
end

#statusObject (readonly)

Returns the value of attribute status.



69
70
71
# File 'lib/auspost/postie.rb', line 69

def status
  @status
end