Sha256: 3d29ea459aa36036df44e4818b7e0be2d4bcc6ab559695462903a0f7fe1426b5
Contents?: true
Size: 1.02 KB
Versions: 7
Compression:
Stored size: 1.02 KB
Contents
require 'bill_hicks/version' require 'csv' require 'net/ftp' require 'bill_hicks/base' require 'bill_hicks/catalog' require 'bill_hicks/category' require 'bill_hicks/inventory' require 'bill_hicks/order' require 'bill_hicks/response_file' require 'bill_hicks/user' module BillHicks class InvalidOrder < StandardError; end class NotAuthenticated < StandardError; end class << self attr_accessor :config end def self.config @config ||= Configuration.new end def self.configure yield(config) end class Configuration attr_accessor :ftp_host attr_accessor :response_dir attr_accessor :submission_dir attr_accessor :top_level_dir def initialize @ftp_host ||= "billhicksco.hostedftp.com" @top_level_dir ||= "AmmoReady" @submission_dir ||= "toBHC" @response_dir ||= "fromBHC" end def full_submission_dir File.join(@top_level_dir, @submission_dir) end def full_response_dir File.join(@top_level_dir, @response_dir) end end end
Version data entries
7 entries across 7 versions & 1 rubygems