Class: Protobuf::Rpc::Interactions::Base

Inherits:
ActiveInteraction::Base
  • Object
show all
Defined in:
lib/protobuf/rpc/interactions/base.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.except_attributesObject



14
15
16
# File 'lib/protobuf/rpc/interactions/base.rb', line 14

def except_attributes
  [].freeze
end

.include_attributesObject



18
19
20
# File 'lib/protobuf/rpc/interactions/base.rb', line 18

def include_attributes
  [].freeze
end

Instance Method Details

#presence_inputsObject



8
9
10
11
# File 'lib/protobuf/rpc/interactions/base.rb', line 8

def presence_inputs
  # todo: need more fields to let server know specified nil values, otherwise it will be ignored
  inputs.reject { |k, v| !given?(k) && v.nil? }
end