Class: Jigit::JiraConfig
- Inherits:
-
Object
- Object
- Jigit::JiraConfig
- Defined in:
- lib/jigit/jira/jira_config.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#password ⇒ Object
Returns the value of attribute password.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(user, password, host) ⇒ JiraConfig
constructor
A new instance of JiraConfig.
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
#host ⇒ Object
Returns the value of attribute host.
5 6 7 |
# File 'lib/jigit/jira/jira_config.rb', line 5 def host @host end |
#password ⇒ Object
Returns the value of attribute password.
4 5 6 |
# File 'lib/jigit/jira/jira_config.rb', line 4 def password @password end |
#user ⇒ Object
Returns the value of attribute user.
3 4 5 |
# File 'lib/jigit/jira/jira_config.rb', line 3 def user @user end |