Class: Paypal::Permissions::FaultMessage::ErrorInformation

Inherits:
Object
  • Object
show all
Defined in:
lib/paypal/permissions/fault_message.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}, error_number = 0) ⇒ ErrorInformation

Returns a new instance of ErrorInformation.



25
26
27
28
29
30
31
32
33
# File 'lib/paypal/permissions/fault_message.rb', line 25

def initialize(options = {}, error_number = 0)
  @category  = options["error(#{error_number}).category"]
  @domain    = options["error(#{error_number}).domain"]
  @subdomain = options["error(#{error_number}).subdomain"]
  @error_id  = options["error(#{error_number}).errorId"]
  @message   = options["error(#{error_number}).message"]
  @parameter = options["error(#{error_number}).parameter"]
  @severity  = options["error(#{error_number}).severity"]
end

Instance Attribute Details

#categoryObject

Returns the value of attribute category.



23
24
25
# File 'lib/paypal/permissions/fault_message.rb', line 23

def category
  @category
end

#domainObject

Returns the value of attribute domain.



23
24
25
# File 'lib/paypal/permissions/fault_message.rb', line 23

def domain
  @domain
end

#error_idObject

Returns the value of attribute error_id.



23
24
25
# File 'lib/paypal/permissions/fault_message.rb', line 23

def error_id
  @error_id
end

#messageObject

Returns the value of attribute message.



23
24
25
# File 'lib/paypal/permissions/fault_message.rb', line 23

def message
  @message
end

#parameterObject

Returns the value of attribute parameter.



23
24
25
# File 'lib/paypal/permissions/fault_message.rb', line 23

def parameter
  @parameter
end

#severityObject

Returns the value of attribute severity.



23
24
25
# File 'lib/paypal/permissions/fault_message.rb', line 23

def severity
  @severity
end

#subdomainObject

Returns the value of attribute subdomain.



23
24
25
# File 'lib/paypal/permissions/fault_message.rb', line 23

def subdomain
  @subdomain
end