Sha256: 385d78a67fd5a56310436c7a2f836fd96443ac1e6555625273c6c21404552a7e

Contents?: true

Size: 1.05 KB

Versions: 10

Compression:

Stored size: 1.05 KB

Contents

# Methods similar to rails controller actions for RpcClient
module CarrotRpc::ClientActions
  # Convience method as a resource alias for index action.
  # To customize, override the method in your class.
  #
  # @param params [Hash] the arguments for the method being called.
  def index(params)
    remote_call("index", params)
  end

  # Convience method as a resource alias for show action.
  # To customize, override the method in your class.
  #
  # @param params [Hash] the arguments for the method being called.
  def show(params)
    remote_call("show", params)
  end

  # Convience method as a resource alias for create action.
  # To customize, override the method in your class.
  #
  # @param params [Hash] the arguments for the method being called.
  def create(params)
    remote_call("create", params)
  end

  # Convience method as a resource alias for update action.
  # To customize, override the method in your class.
  #
  # @param params [Hash] the arguments for the method being called.
  def update(params)
    remote_call("update", params)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
carrot_rpc-1.2.1 lib/carrot_rpc/client_actions.rb
carrot_rpc-1.2.0 lib/carrot_rpc/client_actions.rb
carrot_rpc-1.1.0 lib/carrot_rpc/client_actions.rb
carrot_rpc-1.0.0 lib/carrot_rpc/client_actions.rb
carrot_rpc-0.8.0 lib/carrot_rpc/client_actions.rb
carrot_rpc-0.7.1 lib/carrot_rpc/client_actions.rb
carrot_rpc-0.7.0 lib/carrot_rpc/client_actions.rb
carrot_rpc-0.6.0 lib/carrot_rpc/client_actions.rb
carrot_rpc-0.5.1 lib/carrot_rpc/client_actions.rb
carrot_rpc-0.5.0 lib/carrot_rpc/client_actions.rb