Class: Welo::Nesting

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_symObject

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_symObject

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