class Coinmarketcal::Configuration
Attributes
client_id[RW]
client_secret[RW]
Public Class Methods
defaults()
click to toggle source
# File lib/coinmarketcal/configuration.rb, line 14 def self.defaults @@defaults end
new()
click to toggle source
# File lib/coinmarketcal/configuration.rb, line 18 def initialize reset end
Public Instance Methods
auth()
click to toggle source
# File lib/coinmarketcal/configuration.rb, line 22 def auth { client_id: client_id, client_secret: client_secret } end
reset()
click to toggle source
# File lib/coinmarketcal/configuration.rb, line 29 def reset @@defaults.each_pair { |k, v| send("#{k}=", v) } end