Class: Harvestime::Interface

Inherits:
Object
  • Object
show all
Defined in:
lib/harvestime/interface.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(subdomain, username, password) ⇒ Interface

Returns a new instance of Interface.



5
6
7
8
9
10
# File 'lib/harvestime/interface.rb', line 5

def initialize(subdomain, username, password)
  @interface      = Harvest.hardy_client(subdomain, username, password)
  # @client_filter  = Harvestime::ClientFilter.new(@interface)
  @invoice_filter = Harvestime::InvoiceFilter.new(@interface)
  @time_filter    = Harvestime::TimeFilter.new(@interface)
end

Instance Attribute Details

#client_filterObject

Returns the value of attribute client_filter.



4
5
6
# File 'lib/harvestime/interface.rb', line 4

def client_filter
  @client_filter
end

#invoice_filterObject

Returns the value of attribute invoice_filter.



4
5
6
# File 'lib/harvestime/interface.rb', line 4

def invoice_filter
  @invoice_filter
end

#time_filterObject

Returns the value of attribute time_filter.



4
5
6
# File 'lib/harvestime/interface.rb', line 4

def time_filter
  @time_filter
end