Class: CpanelRuby::API::Response
- Inherits:
-
Object
- Object
- CpanelRuby::API::Response
show all
- Defined in:
- lib/cpanel_ruby/api/response.rb
Instance Method Summary
collapse
Constructor Details
#initialize(response) ⇒ Response
Returns a new instance of Response.
4
5
6
|
# File 'lib/cpanel_ruby/api/response.rb', line 4
def initialize response
@response = response
end
|
Instance Method Details
#body ⇒ Object
12
13
14
|
# File 'lib/cpanel_ruby/api/response.rb', line 12
def body
@response.body
end
|
#code ⇒ Object
16
17
18
|
# File 'lib/cpanel_ruby/api/response.rb', line 16
def code
@response.code
end
|
#response ⇒ Object
8
9
10
|
# File 'lib/cpanel_ruby/api/response.rb', line 8
def response
@response
end
|