Class: Kiik::Wallet
- Inherits:
-
Object
- Object
- Kiik::Wallet
- Defined in:
- lib/kiik/wallet.rb,
lib/kiik/wallet/user.rb,
lib/kiik/wallet/client.rb,
lib/kiik/wallet/creditcard.rb,
lib/kiik/wallet/transaction.rb
Defined Under Namespace
Classes: Client, Creditcard, Transaction, User
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#options ⇒ Object
Returns the value of attribute options.
-
#site ⇒ Object
readonly
Returns the value of attribute site.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
- #api ⇒ Object
- #client ⇒ Object
-
#initialize(token, options = {}) ⇒ Wallet
constructor
A new instance of Wallet.
Constructor Details
#initialize(token, options = {}) ⇒ Wallet
Returns a new instance of Wallet.
7 8 9 10 11 12 13 14 15 |
# File 'lib/kiik/wallet.rb', line 7 def initialize(token,={}) @site = .delete(:url) || 'https://wallet.kiik.com.br' @version = .delete(:version) || 'v1' @token = token @ca_file = .delete(:ca_file) || default_ca_file @logger = .delete(:logger) || Kiik::Logger @options = return true end |
Instance Attribute Details
#logger ⇒ Object
Returns the value of attribute logger.
5 6 7 |
# File 'lib/kiik/wallet.rb', line 5 def logger @logger end |
#options ⇒ Object
Returns the value of attribute options.
5 6 7 |
# File 'lib/kiik/wallet.rb', line 5 def @options end |
#site ⇒ Object (readonly)
Returns the value of attribute site.
4 5 6 |
# File 'lib/kiik/wallet.rb', line 4 def site @site end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
4 5 6 |
# File 'lib/kiik/wallet.rb', line 4 def token @token end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
4 5 6 |
# File 'lib/kiik/wallet.rb', line 4 def version @version end |