Class: PagoPA::SOAP::Message::Institution

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

Constant Summary collapse

REQUIRED_ATTRIBUTES =
%i[
  denominazione_beneficiario identificativo_univoco_beneficiario
].freeze
REQUIRED_IUB =
%i[
  tipo_identificativo_univoco codice_identificativo_univoco
].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ Institution

Returns a new instance of Institution.



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

def initialize(attributes)
  @attributes = attributes
  @iub = attributes[:identificativo_univoco_beneficiario]
  validate_attrs!
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



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

def attributes
  @attributes
end

#iubObject (readonly)

Returns the value of attribute iub.



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

def iub
  @iub
end

Instance Method Details

#to_paramsObject



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

def to_params
end