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