Class: Auspost::Postie::Result
- Inherits:
-
Object
- Object
- Auspost::Postie::Result
- Defined in:
- lib/auspost/postie.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status) ⇒ Result
constructor
A new instance of Result.
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
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
69 70 71 |
# File 'lib/auspost/postie.rb', line 69 def errors @errors end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
69 70 71 |
# File 'lib/auspost/postie.rb', line 69 def status @status end |