Class: SprintIssueChangeData

Inherits:
Object
  • Object
show all
Includes:
ValueEquality
Defined in:
lib/jirametrics/sprint_issue_change_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ValueEquality

#==, #eql?

Constructor Details

#initialize(time:, action:, value:, issue:, story_points:) ⇒ SprintIssueChangeData

Returns a new instance of SprintIssueChangeData.



9
10
11
12
13
14
15
# File 'lib/jirametrics/sprint_issue_change_data.rb', line 9

def initialize time:, action:, value:, issue:, story_points:
  @time = time
  @action = action
  @value = value
  @issue = issue
  @story_points = story_points
end

Instance Attribute Details

#actionObject (readonly)

Returns the value of attribute action.



7
8
9
# File 'lib/jirametrics/sprint_issue_change_data.rb', line 7

def action
  @action
end

#issueObject (readonly)

Returns the value of attribute issue.



7
8
9
# File 'lib/jirametrics/sprint_issue_change_data.rb', line 7

def issue
  @issue
end

#story_pointsObject (readonly)

Returns the value of attribute story_points.



7
8
9
# File 'lib/jirametrics/sprint_issue_change_data.rb', line 7

def story_points
  @story_points
end

#timeObject (readonly)

Returns the value of attribute time.



7
8
9
# File 'lib/jirametrics/sprint_issue_change_data.rb', line 7

def time
  @time
end

#valueObject (readonly)

Returns the value of attribute value.



7
8
9
# File 'lib/jirametrics/sprint_issue_change_data.rb', line 7

def value
  @value
end

Instance Method Details

#inspectObject



17
18
19
20
21
22
23
24
25
# File 'lib/jirametrics/sprint_issue_change_data.rb', line 17

def inspect
  result = +''
  result << 'SprintIssueChangeData('
  result << instance_variables.collect do |variable|
    "#{variable}=#{instance_variable_get(variable).inspect}"
  end.sort.join(', ')
  result << ')'
  result
end