Class: BooleanMeta
Instance Method Summary collapse
-
#initialize ⇒ BooleanMeta
constructor
A new instance of BooleanMeta.
- #load(value) ⇒ Object
- #serialize ⇒ Object
Methods inherited from Meta
Constructor Details
#initialize ⇒ BooleanMeta
Returns a new instance of BooleanMeta.
5 6 7 8 9 10 |
# File 'lib/meta/BooleanMeta.rb', line 5 def initialize() @type = :bool @value = nil end |
Instance Method Details
#load(value) ⇒ Object
15 16 17 |
# File 'lib/meta/BooleanMeta.rb', line 15 def load(value) @value = value.to_s end |
#serialize ⇒ Object
19 20 21 22 23 24 |
# File 'lib/meta/BooleanMeta.rb', line 19 def serialize() { :type => @type, :value => @value } end |