Module: Bvr

Extended by:
Bvr
Included in:
Bvr
Defined in:
lib/bvr.rb,
lib/bvr/call.rb,
lib/bvr/phone.rb,
lib/bvr/credit.rb,
lib/bvr/version.rb,
lib/bvr/customer.rb,
lib/bvr/connection.rb,
lib/bvr/configuration.rb,
lib/bvr/call_collection.rb,
lib/bvr/phone_collection.rb

Defined Under Namespace

Classes: Call, CallCollection, Configuration, Connection, Credit, Customer, Phone, PhoneCollection

Constant Summary collapse

VERSION =
"0.1.0"

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#configObject

Returns the value of attribute config.



6
7
8
# File 'lib/bvr.rb', line 6

def config
  @config
end

#connectionObject

Returns the value of attribute connection.

Raises:

  • (::Exception)


6
7
8
# File 'lib/bvr.rb', line 6

def connection
  @connection
end

Instance Method Details

#configureObject



8
9
10
# File 'lib/bvr.rb', line 8

def configure
  @config = Bvr::Configuration.new.tap{ |configuration| yield(configuration) }
end