Class: Exid::Record::Entry
- Inherits:
-
Data
- Object
- Data
- Exid::Record::Entry
- Defined in:
- lib/exid/record.rb
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
-
#prefixes ⇒ Object
readonly
Returns the value of attribute prefixes.
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
- #hash ⇒ Object
- #prefix ⇒ Object
Instance Attribute Details
#field ⇒ Object (readonly)
Returns the value of attribute field
5 6 7 |
# File 'lib/exid/record.rb', line 5 def field @field end |
#klass ⇒ Object (readonly)
Returns the value of attribute klass
5 6 7 |
# File 'lib/exid/record.rb', line 5 def klass @klass end |
#prefixes ⇒ Object (readonly)
Returns the value of attribute prefixes
5 6 7 |
# File 'lib/exid/record.rb', line 5 def prefixes @prefixes end |
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
9 |
# File 'lib/exid/record.rb', line 9 def ==(other) = prefix == other.prefix |
#hash ⇒ Object
11 |
# File 'lib/exid/record.rb', line 11 def hash = prefix.hash |
#prefix ⇒ Object
7 |
# File 'lib/exid/record.rb', line 7 def prefix = prefixes.first |