Class: MemDB::Entries::Entry
- Inherits:
-
Object
- Object
- MemDB::Entries::Entry
- Defined in:
- lib/mem_db.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#matching ⇒ Object
readonly
Returns the value of attribute matching.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(id, matching, value) ⇒ Entry
constructor
A new instance of Entry.
Constructor Details
#initialize(id, matching, value) ⇒ Entry
Returns a new instance of Entry.
13 14 15 16 17 |
# File 'lib/mem_db.rb', line 13 def initialize(id, matching, value) @id = id @matching = matching @value = value end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
11 12 13 |
# File 'lib/mem_db.rb', line 11 def id @id end |
#matching ⇒ Object (readonly)
Returns the value of attribute matching.
11 12 13 |
# File 'lib/mem_db.rb', line 11 def matching @matching end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
11 12 13 |
# File 'lib/mem_db.rb', line 11 def value @value end |