Class: StrokeDB::Slot
Instance Attribute Summary collapse
-
#doc ⇒ Object
readonly
Returns the value of attribute doc.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(doc, name = nil) ⇒ Slot
constructor
A new instance of Slot.
- #raw_value=(v) ⇒ Object
- #to_raw ⇒ Object
Constructor Details
#initialize(doc, name = nil) ⇒ Slot
88 89 90 91 |
# File 'lib/document/slot.rb', line 88 def initialize(doc, name = nil) @doc, @name = doc, name @decoded = {} end |
Instance Attribute Details
#doc ⇒ Object (readonly)
Returns the value of attribute doc.
86 87 88 |
# File 'lib/document/slot.rb', line 86 def doc @doc end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
86 87 88 |
# File 'lib/document/slot.rb', line 86 def name @name end |
#value ⇒ Object
Returns the value of attribute value.
86 87 88 |
# File 'lib/document/slot.rb', line 86 def value @value end |