class Rubill::Configuration

Attributes

debug[W]
dev_key[RW]
org_id[RW]
password[RW]
sandbox[W]
user_name[RW]

Public Instance Methods

debug() click to toggle source
# File lib/rubill.rb, line 41
def debug
  @debug || false
end
missing_keys() click to toggle source
# File lib/rubill.rb, line 35
def missing_keys
  required_keys.reject do |k|
    to_hash[k]
  end
end
required_keys() click to toggle source
# File lib/rubill.rb, line 25
def required_keys
  %w(user_name password dev_key org_id)
end
sandbox() click to toggle source
# File lib/rubill.rb, line 45
def sandbox
  @sandbox || false
end
to_hash() click to toggle source
# File lib/rubill.rb, line 29
def to_hash
  required_keys.each_with_object({}) do |k, h|
    h[k] = send(k.to_sym)
  end
end