Module: Teller::Config

Extended by:
Config
Included in:
Config
Defined in:
lib/teller/config.rb

Defined Under Namespace

Classes: Error

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#access_tokenObject

Returns the value of attribute access_token.



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

def access_token
  @access_token
end

#certificateObject

Returns the value of attribute certificate.



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

def certificate
  @certificate
end

#private_keyObject

Returns the value of attribute private_key.



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

def private_key
  @private_key
end

Instance Method Details

#setup(opts = {}) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/teller/config.rb', line 8

def setup(opts = {})
  if block_given?
    yield(self)
  else
    opts.each { |k, v| send(:"#{k}=", v) }
  end
end