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