class Ingenico::Connect::SDK::Domain::Payment::ProtectionEligibility

@attr [String] eligibility @attr [String] type

Attributes

eligibility[RW]
type[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/connect/sdk/domain/payment/protection_eligibility.rb, line 27
def from_hash(hash)
  super
  if hash.has_key? 'eligibility'
    @eligibility = hash['eligibility']
  end
  if hash.has_key? 'type'
    @type = hash['type']
  end
end
to_h() click to toggle source

@return (Hash)

Calls superclass method Ingenico::Connect::SDK::DataObject#to_h
# File lib/ingenico/connect/sdk/domain/payment/protection_eligibility.rb, line 20
def to_h
  hash = super
  hash['eligibility'] = @eligibility unless @eligibility.nil?
  hash['type'] = @type unless @type.nil?
  hash
end