Class: Abacos::PaymentCondition

Inherits:
Base
  • Object
show all
Defined in:
lib/abacos/payment_condition.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#response

Class Method Summary collapse

Methods inherited from Base

available, call, collection_name, #confirm!, create, execute, #initialize, #persisted?

Constructor Details

This class inherits a constructor from Abacos::Base

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



3
4
5
# File 'lib/abacos/payment_condition.rb', line 3

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/abacos/payment_condition.rb', line 3

def name
  @name
end

Class Method Details

.allObject



5
6
7
# File 'lib/abacos/payment_condition.rb', line 5

def self.all
  execute("select id = conp_cod, name = rtrim(conp_nom) from abacos..tcom_conpag order by conp_nom")
end