Class: Amorail::Company

Inherits:
Entity
  • Object
show all
Includes:
Leadable
Defined in:
lib/amorail/entities/company.rb

Overview

AmoCRM company entity

Instance Method Summary collapse

Methods included from Leadable

#initialize, #leads, #reload

Methods inherited from Entity

amo_field, amo_names, amo_property, attributes, find, find!, find_all, find_by_query, inherited, #initialize, #load_record, #new_record?, #persisted?, properties, #reload, #reload_model, remote_url, #save, #save!, #update, #update!, where

Instance Method Details

#paramsObject



19
20
21
22
23
# File 'lib/amorail/entities/company.rb', line 19

def params
  data = super
  data[:type] = 'contact'
  data
end