Module: Teller::Config
Defined Under Namespace
Classes: Error
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#certificate ⇒ Object
Returns the value of attribute certificate.
-
#private_key ⇒ Object
Returns the value of attribute private_key.
Instance Method Summary collapse
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
6 7 8 |
# File 'lib/teller/config.rb', line 6 def access_token @access_token end |
#certificate ⇒ Object
Returns the value of attribute certificate.
6 7 8 |
# File 'lib/teller/config.rb', line 6 def certificate @certificate end |
#private_key ⇒ Object
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 |