Module: Intercom::Traits::ApiResource::ClassMethods

Defined in:
lib/intercom/traits/api_resource.rb

Instance Method Summary collapse

Instance Method Details

#from_api(api_response) ⇒ Object


122
123
124
125
126
# File 'lib/intercom/traits/api_resource.rb', line 122

def from_api(api_response)
  object = self.new
  object.from_response(api_response)
  object
end