Class: PollEverywhere::Serializable::Property::Value
- Inherits:
-
Object
- Object
- PollEverywhere::Serializable::Property::Value
- Defined in:
- lib/polleverywhere/serializable.rb
Overview
Contains the value of the property, runs validations, and tracks property changes
Instance Attribute Summary collapse
-
#current ⇒ Object
Returns the value of attribute current.
-
#original ⇒ Object
readonly
Returns the value of attribute original.
-
#property ⇒ Object
readonly
Returns the value of attribute property.
Instance Method Summary collapse
-
#initialize(property) ⇒ Value
constructor
A new instance of Value.
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
#current ⇒ Object
Returns the value of attribute current.
36 37 38 |
# File 'lib/polleverywhere/serializable.rb', line 36 def current @current end |
#original ⇒ Object (readonly)
Returns the value of attribute original.
35 36 37 |
# File 'lib/polleverywhere/serializable.rb', line 35 def original @original end |
#property ⇒ Object (readonly)
Returns the value of attribute property.
35 36 37 |
# File 'lib/polleverywhere/serializable.rb', line 35 def property @property end |