Module: ActiveZuora

Defined in:
lib/active_zuora.rb,
lib/active_zuora/base.rb,
lib/active_zuora/amend.rb,
lib/active_zuora/fields.rb,
lib/active_zuora/scoping.rb,
lib/active_zuora/version.rb,
lib/active_zuora/generate.rb,
lib/active_zuora/relation.rb,
lib/active_zuora/z_object.rb,
lib/active_zuora/generator.rb,
lib/active_zuora/subscribe.rb,
lib/active_zuora/connection.rb,
lib/active_zuora/persistence.rb,
lib/active_zuora/fields/field.rb,
lib/active_zuora/has_many_proxy.rb,
lib/active_zuora/fields/object_field.rb,
lib/active_zuora/fields/string_field.rb,
lib/active_zuora/fields/boolean_field.rb,
lib/active_zuora/fields/decimal_field.rb,
lib/active_zuora/fields/integer_field.rb,
lib/active_zuora/has_many_associations.rb,
lib/active_zuora/fields/date_time_field.rb,
lib/active_zuora/belongs_to_associations.rb,
lib/active_zuora/fields/array_field_decorator.rb

Defined Under Namespace

Modules: Amend, Base, BelongsToAssociations, Fields, Generate, HasManyAssociations, Persistence, Scoping, Subscribe, ZObject Classes: ArrayFieldDecorator, BooleanField, Connection, DateTimeField, DecimalField, Field, Generator, HasManyProxy, IntegerField, ObjectField, Relation, StringField

Constant Summary collapse

VERSION =
"2.0.0"

Class Method Summary collapse

Class Method Details

.configure(configuration) ⇒ Object

Setup configuration. None of this sends a request.


23
24
25
26
27
28
29
30
31
32
# File 'lib/active_zuora.rb', line 23

def self.configure(configuration)
  # Set some sensible defaults with the savon SOAP client.
  Savon.configure do |config|
    config.log = HTTPI.log = configuration[:log] || false
    config.log_level = configuration[:log_level] || :info
    config.raise_errors = true
  end
  # Create a default connection on Base
  Base.connection = Connection.new(configuration)
end

.generate_classes(options = {}) ⇒ Object


34
35
36
37
# File 'lib/active_zuora.rb', line 34

def self.generate_classes(options={})
  generator = Generator.new(Base.connection.soap_client.wsdl.parser, options)
  generator.generate_classes
end