Class: Gerry::Client

Inherits:
Object
  • Object
show all
Includes:
Accounts, Changes, Projects, Request, HTTParty
Defined in:
lib/gerry/client.rb,
lib/gerry/client/changes.rb,
lib/gerry/client/request.rb,
lib/gerry/client/accounts.rb,
lib/gerry/client/projects.rb

Defined Under Namespace

Modules: Accounts, Changes, Projects, Request

Instance Method Summary collapse

Methods included from Request

#map_options

Methods included from Projects

#find_project, #projects

Methods included from Changes

#changes

Methods included from Accounts

#account_capabilities

Constructor Details

#initialize(url, username = nil, password = nil) ⇒ Client

Returns a new instance of Client


19
20
21
22
23
24
25
26
# File 'lib/gerry/client.rb', line 19

def initialize(url, username = nil, password = nil)
  self.class.base_uri(url)
  
  if username && password      
    @username = username
    @password = password
  end
end