Class: JiraClient::User

Inherits:
Base
  • Object
show all
Defined in:
lib/jira_client/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

attr_reader, conversions, convert, from_response, #initialize

Constructor Details

This class inherits a constructor from JiraClient::Base

Instance Attribute Details

#display_nameObject (readonly)

Returns the value of attribute display_name.



3
4
5
# File 'lib/jira_client/user.rb', line 3

def display_name
  @display_name
end

#email_addressObject (readonly)

Returns the value of attribute email_address.



3
4
5
# File 'lib/jira_client/user.rb', line 3

def email_address
  @email_address
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/jira_client/user.rb', line 3

def name
  @name
end

#usernameObject (readonly)

Returns the value of attribute username.



3
4
5
# File 'lib/jira_client/user.rb', line 3

def username
  @username
end

Instance Method Details

#active?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/jira_client/user.rb', line 5

def active?
  @attrs[:active] == true
end

#to_sObject



9
10
11
# File 'lib/jira_client/user.rb', line 9

def to_s
  display_name
end