Class: Teamsupport::Customer
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
#CreatedBy ⇒ String
12
13
14
|
# File 'lib/teamsupport/customer.rb', line 12
def CreatedBy
@CreatedBy
end
|
#CreatorID ⇒ Integer
10
11
12
|
# File 'lib/teamsupport/customer.rb', line 10
def CreatorID
@CreatorID
end
|
#CRMLinkId ⇒ String
12
13
14
|
# File 'lib/teamsupport/customer.rb', line 12
def CRMLinkId
@CRMLinkId
end
|
#DefaultSupportGroup ⇒ String
12
13
14
|
# File 'lib/teamsupport/customer.rb', line 12
def DefaultSupportGroup
@DefaultSupportGroup
end
|
#DefaultSupportGroupID ⇒ Integer
10
11
12
|
# File 'lib/teamsupport/customer.rb', line 10
def DefaultSupportGroupID
@DefaultSupportGroupID
end
|
#DefaultSupportUser ⇒ String
12
13
14
|
# File 'lib/teamsupport/customer.rb', line 12
def DefaultSupportUser
@DefaultSupportUser
end
|
#DefaultSupportUserID ⇒ Integer
10
11
12
|
# File 'lib/teamsupport/customer.rb', line 10
def DefaultSupportUserID
@DefaultSupportUserID
end
|
#DefaultWikiArticle ⇒ String
12
13
14
|
# File 'lib/teamsupport/customer.rb', line 12
def DefaultWikiArticle
@DefaultWikiArticle
end
|
#Description ⇒ String
12
13
14
|
# File 'lib/teamsupport/customer.rb', line 12
def Description
@Description
end
|
#Domains ⇒ String
12
13
14
|
# File 'lib/teamsupport/customer.rb', line 12
def Domains
@Domains
end
|
#ID ⇒ Integer
10
11
12
|
# File 'lib/teamsupport/customer.rb', line 10
def ID
@ID
end
|
#InActiveReason ⇒ String
12
13
14
|
# File 'lib/teamsupport/customer.rb', line 12
def InActiveReason
@InActiveReason
end
|
#LastModifiedBy ⇒ String
12
13
14
|
# File 'lib/teamsupport/customer.rb', line 12
def LastModifiedBy
@LastModifiedBy
end
|
#ModifierID ⇒ Integer
10
11
12
|
# File 'lib/teamsupport/customer.rb', line 10
def ModifierID
@ModifierID
end
|
#Name ⇒ String
12
13
14
|
# File 'lib/teamsupport/customer.rb', line 12
def Name
@Name
end
|
12
13
14
|
# File 'lib/teamsupport/customer.rb', line 12
def PrimaryContact
@PrimaryContact
end
|
#PrimaryUserID ⇒ Integer
10
11
12
|
# File 'lib/teamsupport/customer.rb', line 10
def PrimaryUserID
@PrimaryUserID
end
|
#SlaLevelID ⇒ Integer
10
11
12
|
# File 'lib/teamsupport/customer.rb', line 10
def SlaLevelID
@SlaLevelID
end
|
#SlaName ⇒ String
12
13
14
|
# File 'lib/teamsupport/customer.rb', line 12
def SlaName
@SlaName
end
|
#SupportHoursMonth ⇒ Integer
10
11
12
|
# File 'lib/teamsupport/customer.rb', line 10
def SupportHoursMonth
@SupportHoursMonth
end
|
#SupportHoursRemaining ⇒ Integer
10
11
12
|
# File 'lib/teamsupport/customer.rb', line 10
def SupportHoursRemaining
@SupportHoursRemaining
end
|
#SupportHoursUsed ⇒ Integer
10
11
12
|
# File 'lib/teamsupport/customer.rb', line 10
def SupportHoursUsed
@SupportHoursUsed
end
|
#Website ⇒ String
12
13
14
|
# File 'lib/teamsupport/customer.rb', line 12
def Website
@Website
end
|
Instance Method Details
#HasPortalAccess ⇒ Boolean
Boolean indicating whether a Customer has portal access on Teamsupport
36
37
38
|
# File 'lib/teamsupport/customer.rb', line 36
def HasPortalAccess @attrs[:HasPortalAccess] == 'True' ? true : false
end
|
#IsActive ⇒ Boolean
Boolean indicating whether a Customer is active on Teamsupport
23
24
25
|
# File 'lib/teamsupport/customer.rb', line 23
def IsActive @attrs[:IsActive] == 'True' ? true : false
end
|
#NeedsIndexing ⇒ Boolean
Boolean indicating whether a Customer needs indexing on Teamsupport
49
50
51
|
# File 'lib/teamsupport/customer.rb', line 49
def NeedsIndexing @attrs[:NeedsIndexing] == 'True' ? true : false
end
|
#SAExpirationDate ⇒ Time
Time when the Customer's Service Agreement expires on Teamsupport
62
63
64
|
# File 'lib/teamsupport/customer.rb', line 62
def SAExpirationDate Time.strptime(@attrs[:SAExpirationDate], '%m/%d/%Y %l:%M %p').utc unless @attrs[:SAExpirationDate].nil?
end
|