Module: Mozenda

Defined in:
lib/mozenda.rb,
lib/mozenda/model.rb,
lib/mozenda/request.rb,
lib/mozenda/version.rb,
lib/mozenda/response.rb,
lib/mozenda/exception.rb,
lib/mozenda/configuration.rb,
lib/mozenda/infrastructure.rb

Defined Under Namespace

Modules: Infrastructure, Model, Request, Response Classes: Configuration, ConfigurationException, Exception, InvalidFileFormatException, InvalidRequestException, MissingMethodException, ResponseTypeException, XmlGenerator

Constant Summary collapse

REPLACEMENT_VALUES =
{
  agent_id: "AgentID",
  agent_name: "Agent.Name",
  agent_description: "Agent.Description",
  agent_domain: "Agent.Domain",
  job_id: "JobID",
  job_status: "Job.Status",
  job_created: "Job.Created",
  job_ended: "Job.Ended",
  job_name: "Job.Name",
  job_description: "Job.Description"
}.freeze
VERSION =
"0.1.7"

Class Method Summary collapse

Class Method Details

.configuration {|config| ... } ⇒ Object

Yields:

  • (config)


20
21
22
23
24
# File 'lib/mozenda.rb', line 20

def self.configuration &block
  config = Mozenda::Configuration.instance
  yield(config) if block
  config
end