Sha256: d8c7aec52ec69f7f0b26de2be8fc9f7a95c08ac02273e4061d95f11c78116648
Contents?: true
Size: 309 Bytes
Versions: 4
Compression:
Stored size: 309 Bytes
Contents
require 'yaml' ACCOUNT = YAML.load_file(File.dirname(__FILE__) + '/account.yml') def get_api Box::Api.new(ACCOUNT['api_key']) end def get_account(auth = true) Box::Account.new(get_api).tap do |account| account.authorize(ACCOUNT['auth_token']) if auth end end def get_root get_account.root end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
box-api-0.1.9 | spec/helper/account.rb |
box-api-0.1.8 | spec/helper/account.rb |
box-api-0.1.7 | spec/helper/account.rb |
box-api-0.1.6 | spec/helper/account.rb |