class ROM::CommandProxy

TODO: look into making command graphs work without the root key in the input

so that we can get rid of this wrapper

@api private

Attributes

command[R]
root[R]

Public Class Methods

new(command, root = Inflector.singularize(command.name.relation).to_sym) click to toggle source

@api private

# File lib/rom/command_proxy.rb, line 14
def initialize(command, root = Inflector.singularize(command.name.relation).to_sym)
  @command = command
  @root = root
end

Public Instance Methods

>>(other) click to toggle source

@api private

# File lib/rom/command_proxy.rb, line 25
def >>(other)
  self.class.new(command >> other)
end
call(input) click to toggle source

@api private

# File lib/rom/command_proxy.rb, line 20
def call(input)
  command.call(root => input)
end
restrictible?() click to toggle source

@api private

# File lib/rom/command_proxy.rb, line 30
def restrictible?
  command.restrictible?
end