Class: ActiveSet::Instructions::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/active_set/instructions/entry.rb,
lib/active_set/instructions/entry/value.rb,
lib/active_set/instructions/entry/keypath.rb

Defined Under Namespace

Classes: KeyPath, Value

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(keypath, value) ⇒ Entry

Returns a new instance of Entry.



17
18
19
20
# File 'lib/active_set/instructions/entry.rb', line 17

def initialize(keypath, value)
  @keypath = KeyPath.new(keypath)
  @value = Value.new(value)
end

Instance Attribute Details

#keypathObject (readonly)

Returns the value of attribute keypath.



11
12
13
# File 'lib/active_set/instructions/entry.rb', line 11

def keypath
  @keypath
end

Instance Method Details

#valueObject



22
23
24
# File 'lib/active_set/instructions/entry.rb', line 22

def value
  @value.raw
end