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



12
13
14
# File 'lib/protobuf/rpc/interactions/base.rb', line 12

def self.except_attributes
  [].freeze
end

.include_attributesObject



16
17
18
# File 'lib/protobuf/rpc/interactions/base.rb', line 16

def self.include_attributes
  [].freeze
end

Instance Method Details

#presence_inputsObject



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

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