class Apia::Definitions::ArgumentSet
Attributes
arguments[R]
Public Instance Methods
dsl()
click to toggle source
# File lib/apia/definitions/argument_set.rb, line 17 def dsl @dsl ||= DSLs::ArgumentSet.new(self) end
setup()
click to toggle source
# File lib/apia/definitions/argument_set.rb, line 13 def setup @arguments = {} end
validate(errors)
click to toggle source
# File lib/apia/definitions/argument_set.rb, line 21 def validate(errors) @arguments.each do |name, argument| if argument.is_a?(Apia::Definitions::Argument) argument.validate(errors) else errors.add self, 'InvalidArgument', "The argument '#{name}' is not an instance of Apia::Definitions::Argument" end end end