Class: Jigit::JiraConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/jigit/jira/jira_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user, password, host) ⇒ JiraConfig

Returns a new instance of JiraConfig.



7
8
9
10
11
12
13
14
# File 'lib/jigit/jira/jira_config.rb', line 7

def initialize(user, password, host)
  raise "User name must not be nil" unless user
  raise "Password must not be nil" unless password
  raise "Host must not be nil" unless host
  self.user = user
  self.password = password
  self.host = host
end

Instance Attribute Details

#hostObject

Returns the value of attribute host.



5
6
7
# File 'lib/jigit/jira/jira_config.rb', line 5

def host
  @host
end

#passwordObject

Returns the value of attribute password.



4
5
6
# File 'lib/jigit/jira/jira_config.rb', line 4

def password
  @password
end

#userObject

Returns the value of attribute user.



3
4
5
# File 'lib/jigit/jira/jira_config.rb', line 3

def user
  @user
end