Class: Gerry::Client
- Inherits:
-
Object
- Object
- Gerry::Client
- 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
-
#initialize(url, username = nil, password = nil) ⇒ Client
constructor
A new instance of Client.
- #set_auth_type(auth_type) ⇒ Object
Methods included from Request
#delete, #get, #map_options, #post, #put
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
Methods included from Accounts
#account_capabilities, #account_info, #groups_for_account
Methods included from Access
Constructor Details
#initialize(url, username = nil, password = nil) ⇒ Client
Returns a new instance of Client.
27 28 29 30 31 32 33 34 35 |
# File 'lib/gerry/client.rb', line 27 def initialize(url, username = nil, password = nil) self.class.base_uri(url) @auth_type = :digest_auth if username && password @username = username @password = password end end |
Instance Method Details
#set_auth_type(auth_type) ⇒ Object
23 24 25 |
# File 'lib/gerry/client.rb', line 23 def set_auth_type(auth_type) @auth_type = auth_type end |