Class: Dina::Transaction

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/dina/models/transaction/transaction.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from BaseModel

custom_headers, find_by_group, #initialize, properties, site

Constructor Details

This class inherits a constructor from Dina::BaseModel

Instance Attribute Details

#accepted_directionsObject

Returns the value of attribute accepted_directions.



31
32
33
# File 'lib/dina/models/transaction/transaction.rb', line 31

def accepted_directions
  @accepted_directions
end

Class Method Details

.accepted_directionsObject



41
42
43
44
45
46
# File 'lib/dina/models/transaction/transaction.rb', line 41

def self.accepted_directions
  [
    "IN",
    "OUT"
  ]
end

.endpoint_pathObject



33
34
35
# File 'lib/dina/models/transaction/transaction.rb', line 33

def self.endpoint_path
  "loan-transaction/"
end

.table_nameObject



37
38
39
# File 'lib/dina/models/transaction/transaction.rb', line 37

def self.table_name
  "transaction"
end