Class: Truework::APIResource
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- Truework::APIResource
show all
- Defined in:
- lib/truework/api_resource.rb
Direct Known Subclasses
Address, Company, Document, Earnings, Employee, Employer, Position, Price, Report, Salary, Target, TurnaroundTime, VerificationRequest
Class Method Summary
collapse
Class Method Details
.convert_to_truework_object(data) ⇒ Object
7
8
9
10
11
12
13
14
15
16
|
# File 'lib/truework/api_resource.rb', line 7
def self.convert_to_truework_object(data)
case data
when Array
data.map { |x| convert_to_truework_object(x) }
when Hash
new(data)
else
data
end
end
|
.resource_path ⇒ Object
18
19
20
|
# File 'lib/truework/api_resource.rb', line 18
def self.resource_path
raise NotImplementedError
end
|