class MoneyS3::Parsers::ErrorInfoType

Public Instance Methods

error_code() click to toggle source
# File lib/money_s3/parsers/error_info_type.rb, line 22
def error_code
  at 'ErrorCode'
end
error_code_attributes() click to toggle source
# File lib/money_s3/parsers/error_info_type.rb, line 26
def error_code_attributes
  attributes_at 'ErrorCode'
end
error_description() click to toggle source
# File lib/money_s3/parsers/error_info_type.rb, line 30
def error_description
  at 'ErrorDescription'
end
error_description_attributes() click to toggle source
# File lib/money_s3/parsers/error_info_type.rb, line 34
def error_description_attributes
  attributes_at 'ErrorDescription'
end
error_type_coded() click to toggle source
# File lib/money_s3/parsers/error_info_type.rb, line 6
def error_type_coded
  at 'ErrorTypeCoded'
end
error_type_coded_attributes() click to toggle source
# File lib/money_s3/parsers/error_info_type.rb, line 10
def error_type_coded_attributes
  attributes_at 'ErrorTypeCoded'
end
error_type_other() click to toggle source
# File lib/money_s3/parsers/error_info_type.rb, line 14
def error_type_other
  at 'ErrorTypeOther'
end
error_type_other_attributes() click to toggle source
# File lib/money_s3/parsers/error_info_type.rb, line 18
def error_type_other_attributes
  attributes_at 'ErrorTypeOther'
end
to_h() click to toggle source
# File lib/money_s3/parsers/error_info_type.rb, line 38
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:error_type_coded] = error_type_coded if has? 'ErrorTypeCoded'
  hash[:error_type_coded_attributes] = error_type_coded_attributes if has? 'ErrorTypeCoded'
  hash[:error_type_other] = error_type_other if has? 'ErrorTypeOther'
  hash[:error_type_other_attributes] = error_type_other_attributes if has? 'ErrorTypeOther'
  hash[:error_code] = error_code if has? 'ErrorCode'
  hash[:error_code_attributes] = error_code_attributes if has? 'ErrorCode'
  hash[:error_description] = error_description if has? 'ErrorDescription'
  hash[:error_description_attributes] = error_description_attributes if has? 'ErrorDescription'

  hash
end