class Ingenico::Direct::SDK::Domain::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/direct/sdk/domain/protection_eligibility.rb, line 24
def from_hash(hash)
  super
  @eligibility = hash['eligibility'] if hash.key? 'eligibility'
  @type = hash['type'] if hash.key? 'type'
end
to_h() click to toggle source

@return (Hash)

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