Class: Abacos::Carrier
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Base
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
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/abacos/carrier.rb', line 3 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/abacos/carrier.rb', line 3 def name @name end |
Class Method Details
.all ⇒ Object
5 6 7 |
# File 'lib/abacos/carrier.rb', line 5 def self.all execute("select id = tran_cod, name = rtrim(entb_nom_fan) from abacos..tgen_transp, abacos..tgen_entbas where tgen_transp.entb_cod = tgen_entbas.entb_cod order by entb_nom_fan") end |