Class: SlashPort::Attribute

Inherits:
Object
  • Object
show all
Defined in:
app/models/base/attribute.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#docObject (readonly)

Returns the value of attribute doc.



4
5
6
# File 'app/models/base/attribute.rb', line 4

def doc
  @doc
end

#handlerObject (readonly)

Returns the value of attribute handler.



3
4
5
# File 'app/models/base/attribute.rb', line 3

def handler
  @handler
end

#sortkeysObject (readonly)

Returns the value of attribute sortkeys.



5
6
7
# File 'app/models/base/attribute.rb', line 5

def sortkeys
  @sortkeys
end