Module: FastSpring::Account
- Defined in:
- lib/fastspring-saasy/account.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.[]=(key, val) ⇒ Object
14 15 16 |
# File 'lib/fastspring-saasy/account.rb', line 14 def self.[]=(key, val) config[key] = val end |
.config ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/fastspring-saasy/account.rb', line 5 def self.config @config ||= { :username => 'user', :password => 'pass', :company => 'your-company', :ssl_ca_file => DEFAULT_SSL_CA_FILE } end |
.fetch(key) ⇒ Object
18 19 20 |
# File 'lib/fastspring-saasy/account.rb', line 18 def self.fetch(key) config[key] end |
.setup {|_self| ... } ⇒ Object
22 23 24 25 |
# File 'lib/fastspring-saasy/account.rb', line 22 def self.setup yield self nil end |
Instance Method Details
#[](key) ⇒ Object
27 28 29 |
# File 'lib/fastspring-saasy/account.rb', line 27 def [](key) config[key] end |