Class: Pb::Serializer::Base
- Inherits:
-
Object
- Object
- Pb::Serializer::Base
- Includes:
- Pb::Serializable
- Defined in:
- lib/pb/serializer/base.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(object) ⇒ Base
constructor
A new instance of Base.
Methods included from Pb::Serializable
Methods included from Pb::Serializable::Dsl
#attribute, #ignore, #message, #oneof
Methods included from Pb::Serializable::ClassMethods
#bulk_load, #bulk_load_and_serialize
Constructor Details
#initialize(object) ⇒ Base
Returns a new instance of Base.
13 14 15 |
# File 'lib/pb/serializer/base.rb', line 13 def initialize(object, *) @object = object end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
11 12 13 |
# File 'lib/pb/serializer/base.rb', line 11 def object @object end |