Class: Cadence::Workflow::Serializer::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/cadence/workflow/serializer/base.rb

Instance Method Summary collapse

Constructor Details

#initialize(object) ⇒ Base

Returns a new instance of Base.



8
9
10
# File 'lib/cadence/workflow/serializer/base.rb', line 8

def initialize(object)
  @object = object
end

Instance Method Details

#to_thriftObject

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/cadence/workflow/serializer/base.rb', line 12

def to_thrift
  raise NotImplementedError, 'serializer needs to implement #to_thrift'
end