Class: Harvestime::ClientFilter

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

Instance Method Summary collapse

Constructor Details

#initialize(interface) ⇒ ClientFilter

Returns a new instance of ClientFilter.



5
6
7
# File 'lib/harvestime/client_filter.rb', line 5

def initialize(interface)
  @interface = interface
end

Instance Method Details

#build_client(name) ⇒ Object



11
12
13
# File 'lib/harvestime/client_filter.rb', line 11

def build_client(name)
  Harvest::Client.new(name)
end

#build_client_from_existing(client) ⇒ Object



14
15
16
17
# File 'lib/harvestime/client_filter.rb', line 14

def build_client_from_existing(client)
  build_client(
    )
end

#create_client(client) ⇒ Object



8
9
10
# File 'lib/harvestime/client_filter.rb', line 8

def create_client(client)
  @interface.clients.create(client)
end

#get_all_clientsObject



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

def get_all_clients
  @interface.clients.all
end