Class: Apiculture::Parameter
- Inherits:
-
Struct
- Object
- Struct
- Apiculture::Parameter
- Defined in:
- lib/apiculture.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#cast_proc_or_method ⇒ Object
Returns the value of attribute cast_proc_or_method.
-
#description ⇒ Object
Returns the value of attribute description.
-
#matchable ⇒ Object
Returns the value of attribute matchable.
-
#name ⇒ Object
Returns the value of attribute name.
-
#required ⇒ Object
Returns the value of attribute required.
Instance Method Summary collapse
-
#name_as_string ⇒ Object
Return Strings since Sinatra prefers string keys for params{}.
Instance Attribute Details
#cast_proc_or_method ⇒ Object
Returns the value of attribute cast_proc_or_method
31 32 33 |
# File 'lib/apiculture.rb', line 31 def cast_proc_or_method @cast_proc_or_method end |
#description ⇒ Object
Returns the value of attribute description
31 32 33 |
# File 'lib/apiculture.rb', line 31 def description @description end |
#matchable ⇒ Object
Returns the value of attribute matchable
31 32 33 |
# File 'lib/apiculture.rb', line 31 def matchable @matchable end |
#name ⇒ Object
Returns the value of attribute name
31 32 33 |
# File 'lib/apiculture.rb', line 31 def name @name end |
#required ⇒ Object
Returns the value of attribute required
31 32 33 |
# File 'lib/apiculture.rb', line 31 def required @required end |
Instance Method Details
#name_as_string ⇒ Object
Return Strings since Sinatra prefers string keys for params{}
33 |
# File 'lib/apiculture.rb', line 33 def name_as_string; name.to_s; end |