Class: KlickmailApi::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/klickmail_api/client.rb

Instance Method Summary collapse

Constructor Details

#initializeClient

Returns a new instance of Client.



5
6
7
# File 'lib/klickmail_api/client.rb', line 5

def initialize
  @connector = Connector.new
end

Instance Method Details

#index_fieldsObject



13
14
15
# File 'lib/klickmail_api/client.rb', line 13

def index_fields
  @connector.request('field')
end

#login(username, password) ⇒ Object



9
10
11
# File 'lib/klickmail_api/client.rb', line 9

def (username, password)
  @connector.(username, password)
end