Class: MemDB::Entries::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/mem_db.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



11
12
13
# File 'lib/mem_db.rb', line 11

def id
  @id
end

#matchingObject (readonly)

Returns the value of attribute matching.



11
12
13
# File 'lib/mem_db.rb', line 11

def matching
  @matching
end

#valueObject (readonly)

Returns the value of attribute value.



11
12
13
# File 'lib/mem_db.rb', line 11

def value
  @value
end