Class: Infopark::Crm::Activity
- Inherits:
-
Core::Resource
- Object
- ActiveResource::Base
- Core::Resource
- Infopark::Crm::Activity
- Defined in:
- lib/crm_connector/activity.rb
Defined Under Namespace
Classes: Comment
Class Method Summary collapse
-
.search(input) ⇒ Array<Infopark::Crm::Activity>
Searches for activities.
Instance Method Summary collapse
-
#account ⇒ Infopark::Crm::Account
Queries the WebCRM for the Account with the id
account_id
. -
#contact ⇒ Infopark::Crm::Contact
Queries the WebCRM for the Contact with the id
contact_id
. -
#custom_type ⇒ Infopark::Crm::CustomType
Queries the WebCRM for the CustomType with the id
kind
.
Class Method Details
.search(input) ⇒ Array<Infopark::Crm::Activity>
Searches for activities
18 |
# File 'lib/crm_connector/activity.rb', line 18 has_search |
Instance Method Details
#account ⇒ Infopark::Crm::Account
Queries the WebCRM for the Account with the id account_id
.
51 52 53 |
# File 'lib/crm_connector/activity.rb', line 51 def account Infopark::Crm::Account.find(account_id) if account_id end |
#contact ⇒ Infopark::Crm::Contact
Queries the WebCRM for the Contact with the id contact_id
.
43 44 45 |
# File 'lib/crm_connector/activity.rb', line 43 def contact Infopark::Crm::Contact.find(contact_id) if contact_id end |
#custom_type ⇒ Infopark::Crm::CustomType
Queries the WebCRM for the CustomType with the id kind
.
59 60 61 |
# File 'lib/crm_connector/activity.rb', line 59 def custom_type Infopark::Crm::CustomType.find(kind) if kind end |