Class: BaseApiClient
- Inherits:
-
Object
show all
- Defined in:
- lib/PCP-server-Ruby-SDK/api/base_api_client.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
15
16
17
18
|
# File 'lib/PCP-server-Ruby-SDK/api/base_api_client.rb', line 15
def initialize(config)
@config = config
= .new(config)
end
|
Class Method Details
.parse_json(body) ⇒ Object
65
66
67
68
69
70
|
# File 'lib/PCP-server-Ruby-SDK/api/base_api_client.rb', line 65
def self.parse_json(body)
parsed = JSON.parse(body)
raise TypeError, 'Parsed JSON is not an object' unless parsed.is_a?(Hash)
parsed
end
|
.parse_void ⇒ Object
61
62
63
|
# File 'lib/PCP-server-Ruby-SDK/api/base_api_client.rb', line 61
def self.parse_void
nil
end
|