Class: Tessera::Otrs::Ticket

Inherits:
Base
  • Object
show all
Defined in:
lib/tessera/otrs/ticket.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#to_hash

Constructor Details

#initialize(title:, queue:, state:, priority:, customer_user:, customer_id:) ⇒ Ticket

rubocop:disable Metrics/ParameterLists



7
8
9
10
11
12
13
14
# File 'lib/tessera/otrs/ticket.rb', line 7

def initialize(title:, queue:, state:, priority:, customer_user:, customer_id:)
  @Title = title
  @QueueID = queue
  @State = state
  @PriorityID = priority
  @CustomerUser = customer_user
  @CustomerID = customer_id
end

Instance Attribute Details

#CustomerIDObject

Returns the value of attribute CustomerID.



4
5
6
# File 'lib/tessera/otrs/ticket.rb', line 4

def CustomerID
  @CustomerID
end

#CustomerUserObject

Returns the value of attribute CustomerUser.



4
5
6
# File 'lib/tessera/otrs/ticket.rb', line 4

def CustomerUser
  @CustomerUser
end

#PriorityIDObject

Returns the value of attribute PriorityID.



4
5
6
# File 'lib/tessera/otrs/ticket.rb', line 4

def PriorityID
  @PriorityID
end

#QueueIDObject

Returns the value of attribute QueueID.



4
5
6
# File 'lib/tessera/otrs/ticket.rb', line 4

def QueueID
  @QueueID
end

#StateObject

Returns the value of attribute State.



4
5
6
# File 'lib/tessera/otrs/ticket.rb', line 4

def State
  @State
end

#TitleObject

Returns the value of attribute Title.



4
5
6
# File 'lib/tessera/otrs/ticket.rb', line 4

def Title
  @Title
end