Class: Nifcloud::DNS::Response
- Inherits:
-
Object
- Object
- Nifcloud::DNS::Response
- Defined in:
- lib/nifcloud/dns/response.rb
Overview
Class that manages api response information
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Instance Method Summary collapse
-
#initialize(body, code, raw) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(body, code, raw) ⇒ Response
7 8 9 10 11 |
# File 'lib/nifcloud/dns/response.rb', line 7 def initialize(body, code, raw) @body = body @code = code @raw = raw end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
13 14 15 |
# File 'lib/nifcloud/dns/response.rb', line 13 def body @body end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
13 14 15 |
# File 'lib/nifcloud/dns/response.rb', line 13 def code @code end |
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
13 14 15 |
# File 'lib/nifcloud/dns/response.rb', line 13 def raw @raw end |