class Assembly::Config
Attributes
api_version[RW]
auth_host[RW]
client_id[RW]
client_secret[RW]
host[RW]
refresh_token[RW]
token[RW]
Public Class Methods
new(options={})
click to toggle source
# File lib/assembly/config.rb, line 6 def initialize(options={}) @host = "https://api.assembly.education" @auth_host = "https://platform.assembly.education" @api_version = 1 merge(options) end
Public Instance Methods
copy_with_overrides(options={})
click to toggle source
# File lib/assembly/config.rb, line 13 def copy_with_overrides(options={}) copy = self.dup copy.merge(options) copy end
merge(options)
click to toggle source
# File lib/assembly/config.rb, line 19 def merge(options) options.each do |key, value| send(:"#{key}=", value) end end