Class: NetSuite::Response
- Inherits:
-
Object
- Object
- NetSuite::Response
- Defined in:
- lib/netsuite/response.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#header ⇒ Object
Returns the value of attribute header.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Response
constructor
A new instance of Response.
- #success! ⇒ Object
- #success? ⇒ Boolean
Constructor Details
#initialize(attributes = {}) ⇒ Response
Returns a new instance of Response.
5 6 7 8 9 |
# File 'lib/netsuite/response.rb', line 5 def initialize(attributes = {}) @success = attributes[:success] @header = attributes[:header] @body = attributes[:body] end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
3 4 5 |
# File 'lib/netsuite/response.rb', line 3 def body @body end |
#header ⇒ Object
Returns the value of attribute header.
3 4 5 |
# File 'lib/netsuite/response.rb', line 3 def header @header end |
Instance Method Details
#success! ⇒ Object
11 12 13 |
# File 'lib/netsuite/response.rb', line 11 def success! @success = true end |
#success? ⇒ Boolean
15 16 17 |
# File 'lib/netsuite/response.rb', line 15 def success? @success end |