Class: DBD4::RelationID
- Inherits:
-
Object
- Object
- DBD4::RelationID
- Defined in:
- lib/dbd4/dbd4_model_file.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(relation) ⇒ RelationID
constructor
A new instance of RelationID.
Constructor Details
#initialize(relation) ⇒ RelationID
Returns a new instance of RelationID.
274 275 276 |
# File 'lib/dbd4/dbd4_model_file.rb', line 274 def initialize(relation) @id = relation.attributes['ID'] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
272 273 274 |
# File 'lib/dbd4/dbd4_model_file.rb', line 272 def id @id end |