Module: RESTinPeace::ClassMethods
- Defined in:
- lib/rest_in_peace.rb
Instance Attribute Summary collapse
-
#api ⇒ Object
Returns the value of attribute api.
-
#rip_namespace ⇒ Object
Returns the value of attribute rip_namespace.
Instance Method Summary collapse
Instance Attribute Details
#api ⇒ Object
Returns the value of attribute api.
63 64 65 |
# File 'lib/rest_in_peace.rb', line 63 def api @api end |
#rip_namespace ⇒ Object
Returns the value of attribute rip_namespace.
64 65 66 |
# File 'lib/rest_in_peace.rb', line 64 def rip_namespace @rip_namespace end |
Instance Method Details
#rest_in_peace(&block) ⇒ Object
66 67 68 69 |
# File 'lib/rest_in_peace.rb', line 66 def rest_in_peace(&block) definition_proxy = RESTinPeace::DefinitionProxy.new(self) definition_proxy.instance_eval(&block) end |
#rip_attributes ⇒ Object
78 79 80 81 82 83 |
# File 'lib/rest_in_peace.rb', line 78 def rip_attributes @rip_attributes ||= { read: [], write: [], } end |
#rip_registry ⇒ Object
71 72 73 74 75 76 |
# File 'lib/rest_in_peace.rb', line 71 def rip_registry @rip_registry ||= { resource: [], collection: [], } end |