Class: PagoPA::SOAP::Message::Payer

Inherits:
Object
  • Object
show all
Defined in:
lib/pago_pa/soap/message/payer.rb

Constant Summary collapse

REQUIRED_ATTRIBUTES =
%i[
  anagrafica_pagatore identificativo_univoco_pagatore
].freeze
REQUIRED_IUP =
%i[
  tipo_identificativo_univoco codice_identificativo_univoco
].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Payer

Returns a new instance of Payer.



18
19
20
21
22
# File 'lib/pago_pa/soap/message/payer.rb', line 18

def initialize(attributes = {})
  @attributes = attributes
  @iup = attributes[:identificativo_univoco_pagatore]
  validate_attrs!
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



15
16
17
# File 'lib/pago_pa/soap/message/payer.rb', line 15

def attributes
  @attributes
end

#iupObject (readonly)

Returns the value of attribute iup.



16
17
18
# File 'lib/pago_pa/soap/message/payer.rb', line 16

def iup
  @iup
end

Instance Method Details

#to_paramsObject



24
25
# File 'lib/pago_pa/soap/message/payer.rb', line 24

def to_params
end