Module: Brandmaker

Defined in:
lib/brandmaker/job.rb,
lib/brandmaker/version.rb,
lib/brandmaker/variable.rb,
lib/brandmaker/job_config.rb,
lib/brandmaker/configuration.rb,
lib/brandmaker/grid_variable.rb,
lib/brandmaker/media_variable.rb,
lib/brandmaker/variable_config.rb,
lib/brandmaker/custom_structure.rb,
lib/brandmaker/variable_purpose.rb,
lib/brandmaker/variable_collection.rb,
lib/brandmaker/external_media_variable.rb

Defined Under Namespace

Classes: Configuration, CustomStructure, ExternalMediaVariable, GridVariable, Job, JobConfig, MediaVariable, Variable, VariableCollection, VariableConfig, VariablePurpose

Constant Summary collapse

VERSION =
"0.1.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



4
5
6
# File 'lib/brandmaker/configuration.rb', line 4

def configuration
  @configuration
end

Class Method Details

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

Yields:



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/brandmaker/configuration.rb', line 7

def self.configure
  yield(configuration)

  configuration.dse_client = Savon.client do |wsdl, http, wsse|
    wsdl.document = configuration.dse_service
    wsdl.endpoint = configuration.dse_service
    http.auth.basic(configuration.user, configuration.password)
  end

  configuration.media_pool_client = Savon.client do |wsdl, http, wsse|
    wsdl.document = configuration.media_pool_service
    wsdl.endpoint = configuration.media_pool_service
    http.auth.basic(configuration.user, configuration.password)
  end
end