Module: Harvest

Defined in:
lib/harvestr.rb,
lib/harvest/base.rb,
lib/harvest/reports.rb,
lib/harvest/time_tracking.rb

Defined Under Namespace

Classes: Base, Reports, TimeTracking

Class Method Summary collapse

Class Method Details

.default_optionsObject



46
47
48
49
50
51
52
53
# File 'lib/harvestr.rb', line 46

def self.default_options
  {
    :domain => @domain,
    :email => @email,
    :password => @password,
    :use_ssl => @use_ssl
  }
end

.domainObject



18
19
20
# File 'lib/harvestr.rb', line 18

def self.domain
  @domain
end

.domain=(value) ⇒ Object



14
15
16
# File 'lib/harvestr.rb', line 14

def self.domain=(value)
  @domain = value
end

.emailObject



26
27
28
# File 'lib/harvestr.rb', line 26

def self.email
  @email
end

.email=(value) ⇒ Object



22
23
24
# File 'lib/harvestr.rb', line 22

def self.email=(value)
  @email = value
end

.passwordObject



34
35
36
# File 'lib/harvestr.rb', line 34

def self.password
  @password
end

.password=(value) ⇒ Object



30
31
32
# File 'lib/harvestr.rb', line 30

def self.password=(value)
  @password = value
end

.use_sslObject



42
43
44
# File 'lib/harvestr.rb', line 42

def self.use_ssl
  @use_ssl ||= false
end

.use_ssl=(value) ⇒ Object



38
39
40
# File 'lib/harvestr.rb', line 38

def self.use_ssl=(value)
  @use_ssl = !!value
end