Class: SprintIssueChangeData

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of SprintIssueChangeData.



6
7
8
9
10
11
12
# File 'lib/jirametrics/sprint_issue_change_data.rb', line 6

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.



4
5
6
# File 'lib/jirametrics/sprint_issue_change_data.rb', line 4

def action
  @action
end

#issueObject (readonly)

Returns the value of attribute issue.



4
5
6
# File 'lib/jirametrics/sprint_issue_change_data.rb', line 4

def issue
  @issue
end

#story_pointsObject (readonly)

Returns the value of attribute story_points.



4
5
6
# File 'lib/jirametrics/sprint_issue_change_data.rb', line 4

def story_points
  @story_points
end

#timeObject (readonly)

Returns the value of attribute time.



4
5
6
# File 'lib/jirametrics/sprint_issue_change_data.rb', line 4

def time
  @time
end

#valueObject (readonly)

Returns the value of attribute value.



4
5
6
# File 'lib/jirametrics/sprint_issue_change_data.rb', line 4

def value
  @value
end

Instance Method Details

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/jirametrics/sprint_issue_change_data.rb', line 14

def eql?(other)
  (other.class == self.class) && (other.state == state)
end

#inspectObject



22
23
24
25
26
27
28
29
30
# File 'lib/jirametrics/sprint_issue_change_data.rb', line 22

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

#stateObject



18
19
20
# File 'lib/jirametrics/sprint_issue_change_data.rb', line 18

def state
  instance_variables.map { |variable| instance_variable_get variable }
end