Module: ActiveForms

Defined in:
lib/active_forms.rb,
lib/active_forms/mapper.rb,
lib/active_forms/request.rb,
lib/active_forms/version.rb,
lib/active_forms/configuration.rb

Defined Under Namespace

Classes: ApiKeyInvalid, ApiSigInvalid, ApiTimestampInvalid, ApiVersionNotSupported, Application, ApplicationNotFound, ApplicationNotSent, ApplicationPrint, BadParameterFormat, Configuration, Entry, EntryPrintout, Error, FieldNotFound, FieldNotMultiple, Forbidden, Form, FormActiveVersionNotFound, FormNotFound, FormVersion, FormVersionNotFound, InternalServerError, Mapper, MethodNotAllowed, MissingParameter, MissingResource, MissingVendor, NullResponse, OptionNotFound, Request, ResourceNotSupported, TemplateNotFound, Token, Unauthorized

Constant Summary collapse

VERSION =
"0.3.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



23
24
25
# File 'lib/active_forms.rb', line 23

def configuration
  @configuration
end

Class Method Details

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

Yields:



25
26
27
28
# File 'lib/active_forms.rb', line 25

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

.log(msg) ⇒ Object



30
31
32
33
34
# File 'lib/active_forms.rb', line 30

def log(msg)
  if configuration.logger
    configuration.logger.info(msg)
  end
end