Class: Postino::Form

Inherits:
Object
  • Object
show all
Defined in:
lib/postino/form.rb,
lib/postino/form/address.rb

Defined Under Namespace

Classes: Address

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeForm

Returns a new instance of Form.



8
9
10
# File 'lib/postino/form.rb', line 8

def initialize
  @address = Address.new
end

Instance Attribute Details

#account_numberObject

Returns the value of attribute account_number.



3
4
5
# File 'lib/postino/form.rb', line 3

def 
  @account_number
end

#addressObject (readonly)

Returns the value of attribute address.



6
7
8
# File 'lib/postino/form.rb', line 6

def address
  @address
end

#numeric_amountObject

Returns the value of attribute numeric_amount.



3
4
5
# File 'lib/postino/form.rb', line 3

def numeric_amount
  @numeric_amount
end

#payee_nameObject

Returns the value of attribute payee_name.



3
4
5
# File 'lib/postino/form.rb', line 3

def payee_name
  @payee_name
end

#payer_nameObject

Returns the value of attribute payer_name.



3
4
5
# File 'lib/postino/form.rb', line 3

def payer_name
  @payer_name
end

#reasonObject

Returns the value of attribute reason.



3
4
5
# File 'lib/postino/form.rb', line 3

def reason
  @reason
end

#text_amountObject

Returns the value of attribute text_amount.



3
4
5
# File 'lib/postino/form.rb', line 3

def text_amount
  @text_amount
end

Instance Method Details

#generate(path) ⇒ Object



12
13
14
# File 'lib/postino/form.rb', line 12

def generate(path)
  Postino::Generator.generate_form(path, self)
end