Sha256: 066cd1f42bcadea50f281d4e2b4146ddec8fc65e3d2d82226e24bb5984ffc8d3
Contents?: true
Size: 874 Bytes
Versions: 1
Compression:
Stored size: 874 Bytes
Contents
require 'fileutils' require 'open-uri' require 'digest/md5' require "fourteeninch/version" require "fourteeninch/client" require "fourteeninch/screens" require "fourteeninch/auth" require "fourteeninch/core" require "fourteeninch/main_menu" require "fourteeninch/customers" module Fourteeninch @api_base = 'https://api.fourteeninch.com/api/v1' class << self attr_accessor :api_key, :api_secret, :api_base end def self.api_url(url='') "#{@api_base}/#{url}" end def self.settings_file File.expand_path('~/.fourteeninch') end def self.load_settings if File.exist?(self.settings_file) config = File.open(self.settings_file) do|file| Marshal.load(file) end self.api_key = config[:api_key] if config.has_key?(:api_key) self.api_secret = config[:api_secret] if config.has_key?(:api_secret) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fourteeninch-0.1.0 | lib/fourteeninch.rb |