Class: EventHookClientServer::Grpc::StructEncoder
- Defined in:
- lib/event_hook_client_server/services/grpc/struct_encoder.rb
Defined Under Namespace
Classes: Error, NonEncodeableObjectError, NonPrimitivValueError
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(object) ⇒ StructEncoder
constructor
A new instance of StructEncoder.
Methods inherited from Service
Constructor Details
#initialize(object) ⇒ StructEncoder
Returns a new instance of StructEncoder.
12 13 14 |
# File 'lib/event_hook_client_server/services/grpc/struct_encoder.rb', line 12 def initialize(object) @object = object end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
10 11 12 |
# File 'lib/event_hook_client_server/services/grpc/struct_encoder.rb', line 10 def object @object end |
Instance Method Details
#call ⇒ Object
16 17 18 19 20 |
# File 'lib/event_hook_client_server/services/grpc/struct_encoder.rb', line 16 def call return if object.nil? cast_hash(hash_value) end |