Module: Tipalti

Defined in:
lib/tipalti.rb,
lib/tipalti/iframe.rb,
lib/tipalti/version.rb,
lib/tipalti/configuration.rb

Defined Under Namespace

Classes: Configuration, Iframe

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.configurationObject

Instantiate the Configuration singleton or return it. Remember that the instance has attribute readers so that we can access the configured values



13
14
15
# File 'lib/tipalti.rb', line 13

def configuration
  @configuration ||= Configuration.new
end

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

This is the configure block definition. The configuration method will return the Configuration singleton, which is then yielded to the configure block. Then it’s just a matter of using the attribute accessors we previously defined

Yields:



22
23
24
# File 'lib/tipalti.rb', line 22

def configure
  yield(configuration)
end