Module: CapsuleCRM

Defined in:
lib/capsule_crm.rb,
lib/capsule_crm/tag.rb,
lib/capsule_crm/case.rb,
lib/capsule_crm/task.rb,
lib/capsule_crm/user.rb,
lib/capsule_crm/email.rb,
lib/capsule_crm/phone.rb,
lib/capsule_crm/track.rb,
lib/capsule_crm/errors.rb,
lib/capsule_crm/person.rb,
lib/capsule_crm/address.rb,
lib/capsule_crm/country.rb,
lib/capsule_crm/history.rb,
lib/capsule_crm/website.rb,
lib/capsule_crm/contacts.rb,
lib/capsule_crm/currency.rb,
lib/capsule_crm/gettable.rb,
lib/capsule_crm/taggable.rb,
lib/capsule_crm/milestone.rb,
lib/capsule_crm/attachment.rb,
lib/capsule_crm/connection.rb,
lib/capsule_crm/normalizer.rb,
lib/capsule_crm/serializer.rb,
lib/capsule_crm/contactable.rb,
lib/capsule_crm/hash_helper.rb,
lib/capsule_crm/opportunity.rb,
lib/capsule_crm/participant.rb,
lib/capsule_crm/associations.rb,
lib/capsule_crm/custom_field.rb,
lib/capsule_crm/organization.rb,
lib/capsule_crm/serializable.rb,
lib/capsule_crm/results_proxy.rb,
lib/capsule_crm/task_category.rb,
lib/capsule_crm/querying/find_all.rb,
lib/capsule_crm/querying/find_one.rb,
lib/capsule_crm/querying/findable.rb,
lib/capsule_crm/associations/has_many.rb,
lib/capsule_crm/errors/record_invalid.rb,
lib/capsule_crm/errors/response_error.rb,
lib/capsule_crm/persistence/deletable.rb,
lib/capsule_crm/querying/configuration.rb,
lib/capsule_crm/associations/belongs_to.rb,
lib/capsule_crm/custom_field_definition.rb,
lib/capsule_crm/errors/record_not_saved.rb,
lib/capsule_crm/persistence/persistable.rb,
lib/capsule_crm/persistence/configuration.rb,
lib/capsule_crm/associations/has_many_proxy.rb,
lib/capsule_crm/associations/belongs_to_finder.rb,
lib/capsule_crm/faraday/middleware/raise_error.rb,
lib/capsule_crm/associations/has_many_association.rb,
lib/capsule_crm/associations/belongs_to_association.rb

Defined Under Namespace

Modules: Associations, Contactable, Errors, Faraday, Gettable, Persistence, Querying, Serializable, Taggable Classes: Address, Attachment, Case, Configuration, Connection, Contacts, Country, Currency, CustomField, CustomFieldDefinition, Email, HashHelper, History, Milestone, Normalizer, Opportunity, Organization, Participant, Party, Person, Phone, ResultsProxy, Serializer, Tag, Task, TaskCategory, Track, User, Website

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



53
54
55
# File 'lib/capsule_crm.rb', line 53

def configuration
  @configuration
end

Class Method Details

.configure {|self.configuration| ... } ⇒ Object

Yields:



56
57
58
59
60
# File 'lib/capsule_crm.rb', line 56

def self.configure
  self.configuration = CapsuleCRM::Configuration.new
  yield(self.configuration)
  self.configuration
end

.log(message, level = :debug) ⇒ Object



62
63
64
65
66
# File 'lib/capsule_crm.rb', line 62

def self.log(message, level = :debug)
  if self.configuration.perform_logging
    self.configuration.logger.send(level, message)
  end
end