Class: Aceitafacil::Bank

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Validations
Defined in:
lib/aceitafacil/bank.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ Bank

Returns a new instance of Bank.



13
14
15
16
17
18
19
20
21
# File 'lib/aceitafacil/bank.rb', line 13

def initialize(params = {})
    self.code = params[:code]
    self.agency = params[:agency]
    self. = params[:account_type]
    self. = params[:account_number]
    self. = params[:account_holder_name]
    self. = params[:account_holder_document_type]
    self. = params[:account_holder_document_number]
end

Instance Attribute Details

#account_holder_document_numberObject

Returns the value of attribute account_holder_document_number.



11
12
13
# File 'lib/aceitafacil/bank.rb', line 11

def 
  @account_holder_document_number
end

#account_holder_document_typeObject

Returns the value of attribute account_holder_document_type.



11
12
13
# File 'lib/aceitafacil/bank.rb', line 11

def 
  @account_holder_document_type
end

#account_holder_nameObject

Returns the value of attribute account_holder_name.



10
11
12
# File 'lib/aceitafacil/bank.rb', line 10

def 
  @account_holder_name
end

#account_numberObject

Returns the value of attribute account_number.



10
11
12
# File 'lib/aceitafacil/bank.rb', line 10

def 
  @account_number
end

#account_typeObject

Returns the value of attribute account_type.



10
11
12
# File 'lib/aceitafacil/bank.rb', line 10

def 
  @account_type
end

#agencyObject

Returns the value of attribute agency.



10
11
12
# File 'lib/aceitafacil/bank.rb', line 10

def agency
  @agency
end

#codeObject

Returns the value of attribute code.



10
11
12
# File 'lib/aceitafacil/bank.rb', line 10

def code
  @code
end