Class: JiraSync::UsernamePasswordAuthentication

Inherits:
JiraAuthentication show all
Defined in:
lib/jirasync/jira_client.rb

Instance Attribute Summary collapse

Attributes inherited from JiraAuthentication

#options

Instance Method Summary collapse

Constructor Details

#initialize(username, password) ⇒ UsernamePasswordAuthentication

Returns a new instance of UsernamePasswordAuthentication.



35
36
37
38
39
40
41
42
43
# File 'lib/jirasync/jira_client.rb', line 35

def initialize(username, password)
    super({
        :basic_auth => {
            :username => username,
            :password => password,
        },
    })
    @username = username
end

Instance Attribute Details

#usernameObject (readonly)

Returns the value of attribute username.



33
34
35
# File 'lib/jirasync/jira_client.rb', line 33

def username
  @username
end