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
-
#create(params) ⇒ Object
Convience method as a resource alias for create action.
-
#index(params) ⇒ Object
Convience method as a resource alias for index action.
-
#show(params) ⇒ Object
Convience method as a resource alias for show action.
-
#update(params) ⇒ Object
Convience method as a resource alias for update action.
Instance Method Details
#create(params) ⇒ Object
Convience method as a resource alias for create action. To customize, override the method in your class.
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.
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.
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.
31 32 33 |
# File 'lib/carrot_rpc/client_actions.rb', line 31 def update(params) remote_call("update", params) end |