class Teamsupport::Customer

Attributes

CRMLinkId[R]

@return [String]

CreatedBy[R]

@return [String]

CreatorID[R]

@return [Integer]

DefaultSupportGroup[R]

@return [String]

DefaultSupportGroupID[R]

@return [Integer]

DefaultSupportUser[R]

@return [String]

DefaultSupportUserID[R]

@return [Integer]

DefaultWikiArticle[R]

@return [String]

Description[R]

@return [String]

Domains[R]

@return [String]

ID[R]

@return [Integer]

InActiveReason[R]

@return [String]

LastModifiedBy[R]

@return [String]

ModifierID[R]

@return [Integer]

Name[R]

@return [String]

PrimaryContact[R]

@return [String]

PrimaryUserID[R]

@return [Integer]

SlaLevelID[R]

@return [Integer]

SlaName[R]

@return [String]

SupportHoursMonth[R]

@return [Integer]

SupportHoursRemaining[R]

@return [Integer]

SupportHoursUsed[R]

@return [Integer]

Website[R]

@return [String]

Public Instance Methods

HasPortalAccess() click to toggle source

Boolean indicating whether a Customer has portal access on Teamsupport

@example

teamsupport_customer = Teamsupport::Customer.new(HasPortalAccess: true)
teamsupport_customer.HasPortalAccess

@return [Boolean]

@api public

# File lib/teamsupport/customer.rb, line 36
def HasPortalAccess # rubocop:disable Style/MethodName
  @attrs[:HasPortalAccess] == 'True' ? true : false
end
IsActive() click to toggle source

Boolean indicating whether a Customer is active on Teamsupport

@example

teamsupport_customer = Teamsupport::Customer.new(IsActive: true)
teamsupport_customer.IsActive

@return [Boolean]

@api public

# File lib/teamsupport/customer.rb, line 23
def IsActive # rubocop:disable Style/MethodName
  @attrs[:IsActive] == 'True' ? true : false
end
NeedsIndexing() click to toggle source

Boolean indicating whether a Customer needs indexing on Teamsupport

@example

teamsupport_customer = Teamsupport::Customer.new(NeedsIndexing: true)
teamsupport_customer.NeedsIndexing

@return [Boolean]

@api public

# File lib/teamsupport/customer.rb, line 49
def NeedsIndexing # rubocop:disable Style/MethodName
  @attrs[:NeedsIndexing] == 'True' ? true : false
end
SAExpirationDate() click to toggle source

Time when the Customer's Service Agreement expires on Teamsupport

@example

teamsupport_customer = Teamsupport::Customer.new(SAExpirationDate: '4/4/2015 10:15 AM')
teamsupport_customer.SAExpirationDate

@return [Time]

@api public

# File lib/teamsupport/customer.rb, line 62
def SAExpirationDate # rubocop:disable Style/MethodName
  Time.strptime(@attrs[:SAExpirationDate], '%m/%d/%Y %l:%M %p').utc unless @attrs[:SAExpirationDate].nil?
end