Class: Pb::Serializer::Base

Inherits:
Object
  • Object
show all
Includes:
Pb::Serializable
Defined in:
lib/pb/serializer/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Pb::Serializable

#to_pb

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

#objectObject (readonly)

Returns the value of attribute object.



11
12
13
# File 'lib/pb/serializer/base.rb', line 11

def object
  @object
end