Class: Roseflow::LinkedIn::Job::Object
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- Roseflow::LinkedIn::Job::Object
- Defined in:
- lib/roseflow/linkedin/job/object.rb
Defined Under Namespace
Classes: Company, JobContract, JobMapper, Location
Class Method Summary collapse
Class Method Details
.new(input) ⇒ Object
69 70 71 72 73 |
# File 'lib/roseflow/linkedin/job/object.rb', line 69 def self.new(input) validation = self.contract_object.new.call(input) raise ArgumentError, validation.errors.to_h.inspect unless validation.success? super(validation.to_h) end |