Class: Gerry::Client

Inherits:
Object
  • Object
show all
Includes:
Access, Accounts, Changes, Groups, Projects, Request, HTTParty
Defined in:
lib/gerry/client.rb,
lib/gerry/client/access.rb,
lib/gerry/client/groups.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: Access, Accounts, Changes, Groups, Projects, Request

Instance Method Summary collapse

Methods included from Request

#map_options

Methods included from Projects

#find_project, #get_head, #projects, #set_head

Methods included from Groups

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

Methods included from Changes

#changes

Methods included from Accounts

#account_capabilities, #account_info, #groups_for_account

Methods included from Access

#access

Constructor Details

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

Returns a new instance of Client.



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

def initialize(url, username = nil, password = nil)
  self.class.base_uri(url)

  if username && password
    @username = username
    @password = password
  end
end