Class: PollEverywhere::Serializable::Property::Value

Inherits:
Object
  • Object
show all
Defined in:
lib/polleverywhere/serializable.rb

Overview

Contains the value of the property, runs validations, and tracks property changes

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(property) ⇒ Value

Returns a new instance of Value.



38
39
40
# File 'lib/polleverywhere/serializable.rb', line 38

def initialize(property)
  @property = property
end

Instance Attribute Details

#currentObject

Returns the value of attribute current.



36
37
38
# File 'lib/polleverywhere/serializable.rb', line 36

def current
  @current
end

#originalObject (readonly)

Returns the value of attribute original.



35
36
37
# File 'lib/polleverywhere/serializable.rb', line 35

def original
  @original
end

#propertyObject (readonly)

Returns the value of attribute property.



35
36
37
# File 'lib/polleverywhere/serializable.rb', line 35

def property
  @property
end