Class: Rwsc::Status

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

Overview

this class is Rakuten Webservice result status item .

Constant Summary collapse

SUCCESS =
'Success'
NOT_FOUND =
'NotFound'
SERVER_ERROR =
'ServerError'
CLIENT_ERROR =
'ClientError'
MAINTENANCE =
'Maintenance'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status = nil, status_msg = nil) ⇒ Status

Returns a new instance of Status.



14
15
16
17
# File 'lib/rwsc/status.rb', line 14

def initialize(status = nil, status_msg = nil)
  self.status = status
  self.status_msg = status_msg
end

Instance Attribute Details

#statusObject

Returns the value of attribute status.



6
7
8
# File 'lib/rwsc/status.rb', line 6

def status
  @status
end

#status_msgObject

Returns the value of attribute status_msg.



6
7
8
# File 'lib/rwsc/status.rb', line 6

def status_msg
  @status_msg
end