class Ingenico::Connect::SDK::Domain::Product::BoletoBancarioRequirednessValidator

@attr [Integer] fiscal_number_length

Attributes

fiscal_number_length[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/connect/sdk/domain/product/boleto_bancario_requiredness_validator.rb, line 23
def from_hash(hash)
  super
  if hash.has_key? 'fiscalNumberLength'
    @fiscal_number_length = hash['fiscalNumberLength']
  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/product/boleto_bancario_requiredness_validator.rb, line 17
def to_h
  hash = super
  hash['fiscalNumberLength'] = @fiscal_number_length unless @fiscal_number_length.nil?
  hash
end