Module: CarrotRpc::ClientActions

Included in:
RpcClient
Defined in:
lib/carrot_rpc/client_actions.rb

Overview

Methods similar to rails controller actions for RpcClient

Instance Method Summary collapse

Instance Method Details

#create(params) ⇒ Object

Convience method as a resource alias for create action. To customize, override the method in your class.

Parameters:

  • params (Hash)

    the arguments for the method being called.



23
24
25
# File 'lib/carrot_rpc/client_actions.rb', line 23

def create(params)
  remote_call("create", params)
end

#index(params) ⇒ Object

Convience method as a resource alias for index action. To customize, override the method in your class.

Parameters:

  • params (Hash)

    the arguments for the method being called.



7
8
9
# File 'lib/carrot_rpc/client_actions.rb', line 7

def index(params)
  remote_call("index", params)
end

#show(params) ⇒ Object

Convience method as a resource alias for show action. To customize, override the method in your class.

Parameters:

  • params (Hash)

    the arguments for the method being called.



15
16
17
# File 'lib/carrot_rpc/client_actions.rb', line 15

def show(params)
  remote_call("show", params)
end

#update(params) ⇒ Object

Convience method as a resource alias for update action. To customize, override the method in your class.

Parameters:

  • params (Hash)

    the arguments for the method being called.



31
32
33
# File 'lib/carrot_rpc/client_actions.rb', line 31

def update(params)
  remote_call("update", params)
end