Class: Ez::Registry::Record

Inherits:
Object
  • Object
show all
Defined in:
lib/ez/registry/record.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#byObject

Returns the value of attribute by.



7
8
9
# File 'lib/ez/registry/record.rb', line 7

def by
  @by
end

#dataObject (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

#inspectObject



14
15
16
# File 'lib/ez/registry/record.rb', line 14

def inspect
  "<Record by: #{by}, data: #{data}>"
end