class MoneyS3::Parsers::MessageRootType

Public Instance Methods

error_info() click to toggle source
# File lib/money_s3/parsers/message_root_type.rb, line 18
def error_info
  array_of_at(ErrorInfoType, ['ErrorInfo'])
end
reference() click to toggle source
# File lib/money_s3/parsers/message_root_type.rb, line 14
def reference
  array_of_at(String, ['Reference', 'ID'])
end
status() click to toggle source
# File lib/money_s3/parsers/message_root_type.rb, line 6
def status
  at 'Status'
end
status_attributes() click to toggle source
# File lib/money_s3/parsers/message_root_type.rb, line 10
def status_attributes
  attributes_at 'Status'
end
to_h() click to toggle source
# File lib/money_s3/parsers/message_root_type.rb, line 22
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:status] = status if has? 'Status'
  hash[:status_attributes] = status_attributes if has? 'Status'
  hash[:reference] = reference if has? 'Reference'
  hash[:error_info] = error_info.map(&:to_h) if has? 'ErrorInfo'

  hash
end