Class: Apadmi::Grout::JiraFindTicketsOptions

Inherits:
FindTicketsOptions show all
Defined in:
lib/apadmi/grout/models/find_tickets_options.rb

Overview

Jira specific find tickets options

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(include_no_sprint_tickets: false) ⇒ JiraFindTicketsOptions

Returns a new instance of JiraFindTicketsOptions.

Parameters:

  • include_no_sprint_tickets (String) (defaults to: false)

    whether or not to include tickets with no sprint assigned



13
14
15
# File 'lib/apadmi/grout/models/find_tickets_options.rb', line 13

def initialize(include_no_sprint_tickets: false)
  @include_no_sprint_tickets = include_no_sprint_tickets
end

Instance Attribute Details

#include_no_sprint_ticketsObject (readonly)

Returns the value of attribute include_no_sprint_tickets.



10
11
12
# File 'lib/apadmi/grout/models/find_tickets_options.rb', line 10

def include_no_sprint_tickets
  @include_no_sprint_tickets
end

Instance Method Details

#==(other) ⇒ Object



17
18
19
# File 'lib/apadmi/grout/models/find_tickets_options.rb', line 17

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

#stateObject



21
22
23
# File 'lib/apadmi/grout/models/find_tickets_options.rb', line 21

def state
  [@include_no_sprint_tickets]
end