class ApiMaker::PermittedParamsArgument

Attributes

command[R]
model[R]

Public Class Methods

new(command:, model:) click to toggle source
# File lib/api_maker/permitted_params_argument.rb, line 4
def initialize(command:, model:)
  @command = command
  @model = model
end

Public Instance Methods

params() click to toggle source
# File lib/api_maker/permitted_params_argument.rb, line 9
def params
  command.args
end