Class: ActiveRpc::Operation

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model, ActiveModel::Validations, ActiveModel::Validations::Callbacks
Defined in:
lib/active_rpc/operation.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.fields(*names) ⇒ Object



10
11
12
# File 'lib/active_rpc/operation.rb', line 10

def fields(*names)
  attr_accessor(*names)
end

.operation_name(value) ⇒ Object



14
15
16
# File 'lib/active_rpc/operation.rb', line 14

def operation_name(value)
  ActiveRpc.operation_map[value] = self
end

Instance Method Details

#callObject



19
20
21
# File 'lib/active_rpc/operation.rb', line 19

def call
  raise 'Must Implement'
end