Class: Dev::Jira::Project

Inherits:
Object show all
Defined in:
lib/firespring_dev_commands/jira/project.rb

Overview

Contains information on the Jira project

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Project

Returns a new instance of Project.



7
8
9
10
# File 'lib/firespring_dev_commands/jira/project.rb', line 7

def initialize(data)
  @name = data.project.name
  @name = @name << ' DevOps' if /devops/i.match?(data.issuetype.name)
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/firespring_dev_commands/jira/project.rb', line 5

def name
  @name
end