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



149
150
151
152
153
# File 'lib/intercom/traits/api_resource.rb', line 149

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