Class: Ez::Registry::Record
- Inherits:
-
Object
- Object
- Ez::Registry::Record
- Defined in:
- lib/ez/registry/record.rb
Instance Attribute Summary collapse
-
#by ⇒ Object
Returns the value of attribute by.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(data, by) ⇒ Record
constructor
A new instance of Record.
- #inspect ⇒ Object
Constructor Details
#initialize(data, by) ⇒ Record
Returns a new instance of Record.
9 10 11 12 |
# File 'lib/ez/registry/record.rb', line 9 def initialize(data, by) @data = data @by = by end |
Instance Attribute Details
#by ⇒ Object
Returns the value of attribute by.
7 8 9 |
# File 'lib/ez/registry/record.rb', line 7 def by @by end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
6 7 8 |
# File 'lib/ez/registry/record.rb', line 6 def data @data end |
Instance Method Details
#inspect ⇒ Object
14 15 16 |
# File 'lib/ez/registry/record.rb', line 14 def inspect "<Record by: #{by}, data: #{data}>" end |