Module: Closeio::Rails

Defined in:
lib/closeio/rails.rb,
lib/closeio/rails/engine.rb,
lib/closeio/rails/version.rb,
app/models/closeio/rails/base.rb,
app/models/closeio/rails/lead.rb,
app/models/closeio/rails/note.rb,
app/models/closeio/rails/contact.rb,
app/models/closeio/rails/webhook.rb,
app/models/closeio/rails/custom_field.rb,
app/models/concerns/closeio/rails/attributes.rb,
app/models/concerns/closeio/rails/date_coercion.rb,
app/controllers/closeio/rails/webhooks_controller.rb

Defined Under Namespace

Modules: Attributes, DateCoercion Classes: Base, Configuration, Contact, CustomField, Engine, Error, Lead, Note, Webhook, WebhooksController

Constant Summary collapse

VERSION =
"0.2.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



9
10
11
# File 'lib/closeio/rails.rb', line 9

def configuration
  @configuration
end

Class Method Details

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

Yields:



10
11
12
13
14
# File 'lib/closeio/rails.rb', line 10

def configure
  self.configuration ||= Configuration.new
  yield(configuration)
  self.configuration.configure_connection
end