Sha256: 1758f159743fad069b6d21d9f06b3d1beebc4e6f3522771f4b64296720c198ee

Contents?: true

Size: 945 Bytes

Versions: 1

Compression:

Stored size: 945 Bytes

Contents

require 'forwardable'
require 'rubygems'

gem 'mash', '0.0.3'
require 'mash'

gem 'httparty', '0.4.3'
require 'httparty'

class APIKeyNotSet   < StandardError; end

module Harvest
  
  def self.domain=(value)
    @domain = value
  end
  
  def self.domain
    @domain
  end
  
  def self.email=(value)
    @email = value
  end
  
  def self.email
    @email
  end
  
  def self.password=(value)
    @password = value
  end
  
  def self.password
    @password
  end
  
  def self.use_ssl=(value)
    @use_ssl = !!value
  end
  
  def self.use_ssl
    @use_ssl ||= false
  end
  
  def self.default_options
    {
      :domain => @domain,
      :email => @email,
      :password => @password,
      :use_ssl => @use_ssl
    }
  end
end

directory = File.expand_path(File.dirname(__FILE__))

require File.join(directory, 'harvest', 'base')
require File.join(directory, 'harvest', 'time_tracking')
require File.join(directory, 'harvest', 'reports')

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
harvestr-0.0.1 lib/harvestr.rb