Class: SlashPort::Attribute
- Inherits:
-
Object
- Object
- SlashPort::Attribute
- Defined in:
- app/models/base/attribute.rb
Instance Attribute Summary collapse
-
#doc ⇒ Object
readonly
Returns the value of attribute doc.
-
#handler ⇒ Object
readonly
Returns the value of attribute handler.
-
#sortkeys ⇒ Object
readonly
Returns the value of attribute sortkeys.
Instance Method Summary collapse
-
#initialize(handler, doc, sortkeys = []) ⇒ Attribute
constructor
A new instance of Attribute.
Constructor Details
#initialize(handler, doc, sortkeys = []) ⇒ Attribute
Returns a new instance of Attribute.
7 8 9 10 11 |
# File 'app/models/base/attribute.rb', line 7 def initialize(handler, doc, sortkeys=[]) @handler = handler @doc = doc @sortkeys = sortkeys end |
Instance Attribute Details
#doc ⇒ Object (readonly)
Returns the value of attribute doc.
4 5 6 |
# File 'app/models/base/attribute.rb', line 4 def doc @doc end |
#handler ⇒ Object (readonly)
Returns the value of attribute handler.
3 4 5 |
# File 'app/models/base/attribute.rb', line 3 def handler @handler end |
#sortkeys ⇒ Object (readonly)
Returns the value of attribute sortkeys.
5 6 7 |
# File 'app/models/base/attribute.rb', line 5 def sortkeys @sortkeys end |