Class: AbideDevUtils::Jira::DryRun::DummyIssue

Inherits:
Dummy
  • Object
show all
Defined in:
lib/abide_dev_utils/jira/dry_run.rb

Direct Known Subclasses

DummySubtask

Instance Attribute Summary collapse

Attributes inherited from Dummy

#dummy

Instance Method Summary collapse

Constructor Details

#initialize(summary = 'Dummy Issue', key = 'DUM-111') ⇒ DummyIssue

Returns a new instance of DummyIssue.



89
90
91
92
93
# File 'lib/abide_dev_utils/jira/dry_run.rb', line 89

def initialize(summary = 'Dummy Issue', key = 'DUM-111')
  super
  @summary = summary
  @key = key
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



87
88
89
# File 'lib/abide_dev_utils/jira/dry_run.rb', line 87

def key
  @key
end

#summaryObject (readonly)

Returns the value of attribute summary.



87
88
89
# File 'lib/abide_dev_utils/jira/dry_run.rb', line 87

def summary
  @summary
end

Instance Method Details

#attrsObject



99
100
101
102
103
104
105
106
# File 'lib/abide_dev_utils/jira/dry_run.rb', line 99

def attrs
  {
    'fields' => {
      'project' => 'dummy',
      'priority' => 'dummy',
    },
  }
end

#labelsObject



95
96
97
# File 'lib/abide_dev_utils/jira/dry_run.rb', line 95

def labels
  @labels ||= ['abide_dev_utils']
end