Module: RestSinatra::ClassMethods
- Defined in:
- lib/rest-sinatra.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
9 10 11 |
# File 'lib/rest-sinatra.rb', line 9 def config @config end |
Instance Method Details
#nestable_resource(name, &block) ⇒ Object
15 16 17 |
# File 'lib/rest-sinatra.rb', line 15 def nestable_resource(name, &block) _resource(name, :nestable, &block) end |
#resource(name, &block) ⇒ Object
11 12 13 |
# File 'lib/rest-sinatra.rb', line 11 def resource(name, &block) _resource(name, :regular, &block) end |