Class: RubyIsds::Responses::Status

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_isds/responses/status.rb

Direct Known Subclasses

Db::Status, Dm::Status

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject

Returns the value of attribute code.



4
5
6
# File 'lib/ruby_isds/responses/status.rb', line 4

def code
  @code
end

#messageObject

Returns the value of attribute message.



4
5
6
# File 'lib/ruby_isds/responses/status.rb', line 4

def message
  @message
end