Class: Apadmi::Grout::AdoFindTicketsOptions

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

Overview

Ado specific find tickets options

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(required_tags: [], not_tags: [], additional_fields: {}) ⇒ AdoFindTicketsOptions

Returns a new instance of AdoFindTicketsOptions.



30
31
32
33
34
# File 'lib/apadmi/grout/models/find_tickets_options.rb', line 30

def initialize(required_tags: [], not_tags: [], additional_fields: {})
  @required_tags = required_tags
  @not_tags = not_tags
  @additional_fields = additional_fields
end

Instance Attribute Details

#additional_fieldsObject (readonly)

Returns the value of attribute additional_fields.



28
29
30
# File 'lib/apadmi/grout/models/find_tickets_options.rb', line 28

def additional_fields
  @additional_fields
end

#not_tagsObject (readonly)

Returns the value of attribute not_tags.



28
29
30
# File 'lib/apadmi/grout/models/find_tickets_options.rb', line 28

def not_tags
  @not_tags
end

#required_tagsObject (readonly)

Returns the value of attribute required_tags.



28
29
30
# File 'lib/apadmi/grout/models/find_tickets_options.rb', line 28

def required_tags
  @required_tags
end

Instance Method Details

#==(other) ⇒ Object



36
37
38
# File 'lib/apadmi/grout/models/find_tickets_options.rb', line 36

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

#stateObject



40
41
42
# File 'lib/apadmi/grout/models/find_tickets_options.rb', line 40

def state
  [@required_tags, @not_tags, @additional_fields]
end