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.
87 88 89 |
# File 'lib/rest_in_peace.rb', line 87 def api @api end |
#rip_namespace ⇒ Object
Returns the value of attribute rip_namespace.
88 89 90 |
# File 'lib/rest_in_peace.rb', line 88 def rip_namespace @rip_namespace end |
Instance Method Details
#rest_in_peace(&block) ⇒ Object
90 91 92 93 |
# File 'lib/rest_in_peace.rb', line 90 def rest_in_peace(&block) definition_proxy = RESTinPeace::DefinitionProxy.new(self) definition_proxy.instance_eval(&block) end |
#rip_attributes ⇒ Object
102 103 104 105 106 107 |
# File 'lib/rest_in_peace.rb', line 102 def rip_attributes @rip_attributes ||= { read: [], write: [], } end |
#rip_registry ⇒ Object
95 96 97 98 99 100 |
# File 'lib/rest_in_peace.rb', line 95 def rip_registry @rip_registry ||= { resource: [], collection: [], } end |