Class: ActiveForms::EntryPrintout

Inherits:
Mapper
  • Object
show all
Defined in:
lib/active_forms/entry_printout.rb

Instance Attribute Summary

Attributes inherited from Mapper

#attributes

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Mapper

#==, #apiVersion=, #initialize, #xmlns=

Constructor Details

This class inherits a constructor from ActiveForms::Mapper

Class Method Details

.find(params = {}) ⇒ Object

required params:

apiFormCode - Form's code
apiNumber   - Application's number


10
11
12
13
14
15
16
# File 'lib/active_forms/entry_printout.rb', line 10

def find(params = {})
  response = ActiveForms::Request.get("entryprintout", params)

  attributes = response["entryPrintout"]

  new(attributes)
end

Instance Method Details

#printoutContent=(value) ⇒ Object



19
20
21
# File 'lib/active_forms/entry_printout.rb', line 19

def printoutContent=(value)
  @attributes["printoutContent"] = value.is_a?(String) ? value.strip : super
end