Class: CpanelRuby::API::Response

Inherits:
Object
  • Object
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

#bodyObject



12
13
14
# File 'lib/cpanel_ruby/api/response.rb', line 12

def body
  @response.body
end

#codeObject



16
17
18
# File 'lib/cpanel_ruby/api/response.rb', line 16

def code
  @response.code
end

#responseObject



8
9
10
# File 'lib/cpanel_ruby/api/response.rb', line 8

def response
  @response
end