class Agris::Api::NewVoucher

Constants

ATTRIBUTE_NAMES

Attributes

details[R]

Public Class Methods

new(hash = {}) click to toggle source
Calls superclass method
# File lib/agris/api/new_voucher.rb, line 49
def initialize(hash = {})
  super

  @details = []
  @record_type = 'ACPV0'
end

Public Instance Methods

add_detail(voucher) click to toggle source
# File lib/agris/api/new_voucher.rb, line 56
def add_detail(voucher)
  @details << voucher
end
xml_ignore_attributes() click to toggle source
# File lib/agris/api/new_voucher.rb, line 60
def xml_ignore_attributes
  [:details]
end