class Swaggable::ParameterDefinition
Public Instance Methods
==(other)
click to toggle source
# File lib/swaggable/parameter_definition.rb, line 34 def == other if other.respond_to?(:name) && other.respond_to?(:location) [name, location] == [other.name, other.location] else false end end
Also aliased as: eql?
hash()
click to toggle source
# File lib/swaggable/parameter_definition.rb, line 44 def hash [name, location].hash end
name=(value)
click to toggle source
# File lib/swaggable/parameter_definition.rb, line 30 def name= value @name = value.to_s end
required?()
click to toggle source
# File lib/swaggable/parameter_definition.rb, line 19 def required? !!required end
schema(&block)
click to toggle source
# File lib/swaggable/parameter_definition.rb, line 23 def schema &block ForwardingDsl.run( @schema ||= build_schema, &block ) end
Private Instance Methods
build_schema()
click to toggle source
# File lib/swaggable/parameter_definition.rb, line 50 def build_schema SchemaDefinition.new end