Class: Welo::Nesting
- Inherits:
-
Object
- Object
- Welo::Nesting
- Defined in:
- lib/welo/core/nesting.rb
Overview
Nesting are not embeddings they just points to other resources with local identification namings scheme
Instance Attribute Summary collapse
-
#identifier_sym ⇒ Object
The symbol for the method to identify the nested resource.
-
#resource_sym ⇒ Object
The symbol for the method to call to get the nested resource.
Instance Method Summary collapse
-
#initialize(sym1, sym2) ⇒ Nesting
constructor
A new instance of Nesting.
Constructor Details
#initialize(sym1, sym2) ⇒ Nesting
Returns a new instance of Nesting.
14 15 16 17 |
# File 'lib/welo/core/nesting.rb', line 14 def initialize(sym1, sym2) @resource_sym = sym1 @identifier_sym = sym2 end |
Instance Attribute Details
#identifier_sym ⇒ Object
The symbol for the method to identify the nested resource
12 13 14 |
# File 'lib/welo/core/nesting.rb', line 12 def identifier_sym @identifier_sym end |
#resource_sym ⇒ Object
The symbol for the method to call to get the nested resource
8 9 10 |
# File 'lib/welo/core/nesting.rb', line 8 def resource_sym @resource_sym end |