Class: Roseflow::LinkedIn::Person::ProfileQuery

Inherits:
Proxycurl::ProxycurlObject show all
Defined in:
lib/roseflow/linkedin/person/profile_query.rb

Defined Under Namespace

Classes: ProfileQueryContract

Class Method Summary collapse

Class Method Details

.new(input) ⇒ Object

Raises:

  • (ArgumentError)


46
47
48
49
50
# File 'lib/roseflow/linkedin/person/profile_query.rb', line 46

def self.new(input)
  validation = self.contract_object.new.call(input)
  raise ArgumentError, validation.errors.to_h.inspect unless validation.success?
  super(input)
end