Class: Gerry::Client

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

Defined Under Namespace

Modules: Accounts, Changes, Groups, Projects, Request

Instance Method Summary collapse

Methods included from Request

#map_options

Methods included from Projects

#find_project, #projects

Methods included from Groups

#add_to_group, #create_group, #group_members, #groups, #remove_from_group

Methods included from Changes

#changes

Methods included from Accounts

#account_capabilities, #groups_for_account

Constructor Details

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


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

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