Class: Holistic::Ruby::Reference::Record
Instance Attribute Summary
#__database__, #attributes, #relations
Instance Method Summary
collapse
#attr, #has_many, #has_one, #initialize, #relation
Instance Method Details
#clues ⇒ Object
6
|
# File 'lib/holistic/ruby/reference/record.rb', line 6
def clues = attr(:clues)
|
#find_clue(clue_kind) ⇒ Object
12
13
14
|
# File 'lib/holistic/ruby/reference/record.rb', line 12
def find_clue(clue_kind)
clues.find { |clue| clue.is_a?(clue_kind) }
end
|
#identifier ⇒ Object
5
|
# File 'lib/holistic/ruby/reference/record.rb', line 5
def identifier = attr(:identifier)
|
#inspect ⇒ Object
16
17
18
|
# File 'lib/holistic/ruby/reference/record.rb', line 16
def inspect
"<#{self.class.name} clues=[#{clues}] referenced_scope=#{referenced_scope&.fully_qualified_name}>"
end
|
#located_in_scope ⇒ Object
10
|
# File 'lib/holistic/ruby/reference/record.rb', line 10
def located_in_scope = has_one(:located_in_scope)
|
#location ⇒ Object
7
|
# File 'lib/holistic/ruby/reference/record.rb', line 7
def location = attr(:location)
|
#referenced_scope ⇒ Object
9
|
# File 'lib/holistic/ruby/reference/record.rb', line 9
def referenced_scope = has_one(:referenced_scope)
|