Class: RubyIsds::Responses::Status
- Inherits:
-
Object
- Object
- RubyIsds::Responses::Status
- Defined in:
- lib/ruby_isds/responses/status.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(response) ⇒ Status
constructor
A new instance of Status.
Constructor Details
#initialize(response) ⇒ Status
Returns a new instance of Status.
6 7 8 9 10 |
# File 'lib/ruby_isds/responses/status.rb', line 6 def initialize(response) status = response["#{namespace}Status"] @code = status["#{namespace}StatusCode"] @message = status["#{namespace}StatusMessage"] end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
4 5 6 |
# File 'lib/ruby_isds/responses/status.rb', line 4 def code @code end |
#message ⇒ Object
Returns the value of attribute message.
4 5 6 |
# File 'lib/ruby_isds/responses/status.rb', line 4 def @message end |