Class: WCC::API::RestClient::TyphoeusAdapter::Response

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/wcc/api/rest_client/typhoeus_adapter.rb

Instance Method Summary collapse

Instance Method Details

#rawObject


50
51
52
# File 'lib/wcc/api/rest_client/typhoeus_adapter.rb', line 50

def raw
  __getobj__
end

#statusObject


58
59
60
# File 'lib/wcc/api/rest_client/typhoeus_adapter.rb', line 58

def status
  code
end

#to_sObject


54
55
56
# File 'lib/wcc/api/rest_client/typhoeus_adapter.rb', line 54

def to_s
  body&.to_s
end