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
38 39 40 |
# File 'lib/apiculture.rb', line 38 def cast_proc_or_method @cast_proc_or_method end |
#description ⇒ Object
Returns the value of attribute description
38 39 40 |
# File 'lib/apiculture.rb', line 38 def description @description end |
#matchable ⇒ Object
Returns the value of attribute matchable
38 39 40 |
# File 'lib/apiculture.rb', line 38 def matchable @matchable end |
#name ⇒ Object
Returns the value of attribute name
38 39 40 |
# File 'lib/apiculture.rb', line 38 def name @name end |
#required ⇒ Object
Returns the value of attribute required
38 39 40 |
# File 'lib/apiculture.rb', line 38 def required @required end |
Instance Method Details
#name_as_string ⇒ Object
Return Strings since Sinatra prefers string keys for params{}
40 |
# File 'lib/apiculture.rb', line 40 def name_as_string; name.to_s; end |