Class: Harvestime::Interface
- Inherits:
-
Object
- Object
- Harvestime::Interface
- Defined in:
- lib/harvestime/interface.rb
Instance Attribute Summary collapse
-
#client_filter ⇒ Object
Returns the value of attribute client_filter.
-
#invoice_filter ⇒ Object
Returns the value of attribute invoice_filter.
-
#time_filter ⇒ Object
Returns the value of attribute time_filter.
Instance Method Summary collapse
-
#initialize(subdomain, username, password) ⇒ Interface
constructor
A new instance of Interface.
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_filter ⇒ Object
Returns the value of attribute client_filter.
4 5 6 |
# File 'lib/harvestime/interface.rb', line 4 def client_filter @client_filter end |
#invoice_filter ⇒ Object
Returns the value of attribute invoice_filter.
4 5 6 |
# File 'lib/harvestime/interface.rb', line 4 def invoice_filter @invoice_filter end |
#time_filter ⇒ Object
Returns the value of attribute time_filter.
4 5 6 |
# File 'lib/harvestime/interface.rb', line 4 def time_filter @time_filter end |