Class: Rwsc::Status
- Inherits:
-
Object
- Object
- Rwsc::Status
- 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
-
#status ⇒ Object
Returns the value of attribute status.
-
#status_msg ⇒ Object
Returns the value of attribute status_msg.
Instance Method Summary collapse
-
#initialize(status = nil, status_msg = nil) ⇒ Status
constructor
A new instance of Status.
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
#status ⇒ Object
Returns the value of attribute status.
6 7 8 |
# File 'lib/rwsc/status.rb', line 6 def status @status end |
#status_msg ⇒ Object
Returns the value of attribute status_msg.
6 7 8 |
# File 'lib/rwsc/status.rb', line 6 def status_msg @status_msg end |