Class: Exid::Record::Entry

Inherits:
Data
  • Object
show all
Defined in:
lib/exid/record.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fieldObject (readonly)

Returns the value of attribute field



5
6
7
# File 'lib/exid/record.rb', line 5

def field
  @field
end

#klassObject (readonly)

Returns the value of attribute klass



5
6
7
# File 'lib/exid/record.rb', line 5

def klass
  @klass
end

#prefixObject (readonly)

Returns the value of attribute prefix



5
6
7
# File 'lib/exid/record.rb', line 5

def prefix
  @prefix
end

Instance Method Details

#==(other) ⇒ Object Also known as: eql?



7
# File 'lib/exid/record.rb', line 7

def ==(other) = prefix == other.prefix

#hashObject



9
# File 'lib/exid/record.rb', line 9

def hash = prefix.hash