Class: Teamsupport::Ticket
Instance Attribute Summary collapse
Attributes inherited from Base
#attrs
Instance Method Summary
collapse
Methods included from Creatable
#DateCreated, #DateModified
Methods inherited from Identity
#initialize
Methods inherited from Base
#[], attr_reader, define_attribute_method, define_predicate_method, #initialize, object_attr_reader, predicate_attr_reader
Methods included from Utils
flat_pmap, pmap
Instance Attribute Details
#CloserID ⇒ Integer
10
11
12
|
# File 'lib/teamsupport/ticket.rb', line 10
def CloserID
@CloserID
end
|
#CloserName ⇒ String
14
15
16
|
# File 'lib/teamsupport/ticket.rb', line 14
def CloserName
@CloserName
end
|
#CreatorID ⇒ Integer
10
11
12
|
# File 'lib/teamsupport/ticket.rb', line 10
def CreatorID
@CreatorID
end
|
#CreatorName ⇒ String
14
15
16
|
# File 'lib/teamsupport/ticket.rb', line 14
def CreatorName
@CreatorName
end
|
#DaysClosed ⇒ Integer
10
11
12
|
# File 'lib/teamsupport/ticket.rb', line 10
def DaysClosed
@DaysClosed
end
|
#DaysOpened ⇒ Integer
10
11
12
|
# File 'lib/teamsupport/ticket.rb', line 10
def DaysOpened
@DaysOpened
end
|
#GroupID ⇒ Integer
10
11
12
|
# File 'lib/teamsupport/ticket.rb', line 10
def GroupID
@GroupID
end
|
#GroupName ⇒ String
14
15
16
|
# File 'lib/teamsupport/ticket.rb', line 14
def GroupName
@GroupName
end
|
12
13
14
|
# File 'lib/teamsupport/ticket.rb', line 12
def HoursSpent
@HoursSpent
end
|
#ID ⇒ Integer
10
11
12
|
# File 'lib/teamsupport/ticket.rb', line 10
def ID
@ID
end
|
#KnowledgeBaseCategoryID ⇒ Integer
10
11
12
|
# File 'lib/teamsupport/ticket.rb', line 10
def KnowledgeBaseCategoryID
@KnowledgeBaseCategoryID
end
|
#KnowledgeBaseCategoryName ⇒ String
14
15
16
|
# File 'lib/teamsupport/ticket.rb', line 14
def KnowledgeBaseCategoryName
@KnowledgeBaseCategoryName
end
|
#ModifierID ⇒ Integer
10
11
12
|
# File 'lib/teamsupport/ticket.rb', line 10
def ModifierID
@ModifierID
end
|
#ModifierName ⇒ String
14
15
16
|
# File 'lib/teamsupport/ticket.rb', line 14
def ModifierName
@ModifierName
end
|
#Name ⇒ String
14
15
16
|
# File 'lib/teamsupport/ticket.rb', line 14
def Name
@Name
end
|
#OrganizationID ⇒ Integer
10
11
12
|
# File 'lib/teamsupport/ticket.rb', line 10
def OrganizationID
@OrganizationID
end
|
#ParentID ⇒ Integer
10
11
12
|
# File 'lib/teamsupport/ticket.rb', line 10
def ParentID
@ParentID
end
|
#ProductID ⇒ Integer
10
11
12
|
# File 'lib/teamsupport/ticket.rb', line 10
def ProductID
@ProductID
end
|
#ProductName ⇒ String
14
15
16
|
# File 'lib/teamsupport/ticket.rb', line 14
def ProductName
@ProductName
end
|
#ReportedVersion ⇒ String
14
15
16
|
# File 'lib/teamsupport/ticket.rb', line 14
def ReportedVersion
@ReportedVersion
end
|
#ReportedVersionID ⇒ Integer
10
11
12
|
# File 'lib/teamsupport/ticket.rb', line 10
def ReportedVersionID
@ReportedVersionID
end
|
#Severity ⇒ String
14
15
16
|
# File 'lib/teamsupport/ticket.rb', line 14
def Severity
@Severity
end
|
#SeverityPosition ⇒ Integer
10
11
12
|
# File 'lib/teamsupport/ticket.rb', line 10
def SeverityPosition
@SeverityPosition
end
|
#SlaViolationHours ⇒ Float
12
13
14
|
# File 'lib/teamsupport/ticket.rb', line 12
def SlaViolationHours
@SlaViolationHours
end
|
#SlaViolationTime ⇒ Float
12
13
14
|
# File 'lib/teamsupport/ticket.rb', line 12
def SlaViolationTime
@SlaViolationTime
end
|
#SlaWarningHours ⇒ Float
12
13
14
|
# File 'lib/teamsupport/ticket.rb', line 12
def SlaWarningHours
@SlaWarningHours
end
|
#SlaWarningTime ⇒ Float
12
13
14
|
# File 'lib/teamsupport/ticket.rb', line 12
def SlaWarningTime
@SlaWarningTime
end
|
#SolvedVersion ⇒ String
14
15
16
|
# File 'lib/teamsupport/ticket.rb', line 14
def SolvedVersion
@SolvedVersion
end
|
#SolvedVersionID ⇒ Integer
10
11
12
|
# File 'lib/teamsupport/ticket.rb', line 10
def SolvedVersionID
@SolvedVersionID
end
|
#Status ⇒ String
14
15
16
|
# File 'lib/teamsupport/ticket.rb', line 14
def Status
@Status
end
|
#StatusPosition ⇒ Integer
10
11
12
|
# File 'lib/teamsupport/ticket.rb', line 10
def StatusPosition
@StatusPosition
end
|
#TicketNumber ⇒ Integer
10
11
12
|
# File 'lib/teamsupport/ticket.rb', line 10
def TicketNumber
@TicketNumber
end
|
#TicketSeverityID ⇒ Integer
10
11
12
|
# File 'lib/teamsupport/ticket.rb', line 10
def TicketSeverityID
@TicketSeverityID
end
|
#TicketSource ⇒ String
14
15
16
|
# File 'lib/teamsupport/ticket.rb', line 14
def TicketSource
@TicketSource
end
|
#TicketStatusID ⇒ Integer
10
11
12
|
# File 'lib/teamsupport/ticket.rb', line 10
def TicketStatusID
@TicketStatusID
end
|
#TicketTypeID ⇒ Integer
10
11
12
|
# File 'lib/teamsupport/ticket.rb', line 10
def TicketTypeID
@TicketTypeID
end
|
#TicketTypeName ⇒ String
14
15
16
|
# File 'lib/teamsupport/ticket.rb', line 14
def TicketTypeName
@TicketTypeName
end
|
#UserID ⇒ Integer
10
11
12
|
# File 'lib/teamsupport/ticket.rb', line 10
def UserID
@UserID
end
|
#UserName ⇒ String
14
15
16
|
# File 'lib/teamsupport/ticket.rb', line 14
def UserName
@UserName
end
|
Instance Method Details
#DateClosed ⇒ Time
Time when the Ticket was closed on Teamsupport
64
65
66
|
# File 'lib/teamsupport/ticket.rb', line 64
def DateClosed Time.strptime(@attrs[:DateClosed], '%m/%d/%Y %l:%M %p').utc unless @attrs[:DateClosed].nil?
end
|
#DueDate ⇒ Time
Time when the Ticket is due to be completed on Teamsupport
77
78
79
|
# File 'lib/teamsupport/ticket.rb', line 77
def DueDate Time.strptime(@attrs[:DueDate], '%m/%d/%Y %l:%M %p').utc unless @attrs[:DueDate].nil?
end
|
#IsClosed ⇒ Boolean
Boolean indicating whether a Ticket is closed on Teamsupport
25
26
27
|
# File 'lib/teamsupport/ticket.rb', line 25
def IsClosed @attrs[:IsClosed] == 'True' ? true : false
end
|
#IsKnowledgeBase ⇒ Boolean
Boolean indicating whether a Ticket is shown in the knowledgebase on Teamsupport
51
52
53
|
# File 'lib/teamsupport/ticket.rb', line 51
def IsKnowledgeBase @attrs[:IsKnowledgeBase] == 'True' ? true : false
end
|
#IsVisibleOnPortal ⇒ Boolean
Boolean indicating whether a Ticket is visible via the portal on Teamsupport
38
39
40
|
# File 'lib/teamsupport/ticket.rb', line 38
def IsVisibleOnPortal @attrs[:IsVisibleOnPortal] == 'True' ? true : false
end
|