Class: Apiculture::Parameter

Inherits:
Struct
  • Object
show all
Defined in:
lib/apiculture.rb

Direct Known Subclasses

RouteParameter

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cast_proc_or_methodObject

Returns the value of attribute cast_proc_or_method

Returns:

  • (Object)

    the current value of cast_proc_or_method



29
30
31
# File 'lib/apiculture.rb', line 29

def cast_proc_or_method
  @cast_proc_or_method
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



29
30
31
# File 'lib/apiculture.rb', line 29

def description
  @description
end

#matchableObject

Returns the value of attribute matchable

Returns:

  • (Object)

    the current value of matchable



29
30
31
# File 'lib/apiculture.rb', line 29

def matchable
  @matchable
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



29
30
31
# File 'lib/apiculture.rb', line 29

def name
  @name
end

#requiredObject

Returns the value of attribute required

Returns:

  • (Object)

    the current value of required



29
30
31
# File 'lib/apiculture.rb', line 29

def required
  @required
end

Instance Method Details

#name_as_stringObject

Return Strings since Sinatra prefers string keys for params{}



31
# File 'lib/apiculture.rb', line 31

def name_as_string; name.to_s; end