Class: ArcWeld::Group

Inherits:
Object
  • Object
show all
Includes:
Relationship, Resource
Defined in:
lib/arc_weld/resources/group.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Relationship

included, #relationship_hash, #relationship_types

Methods included from Resource

#identity, #identity_hash, included, #parent_ref=, #parent_uri=, #property_hash, #ref, #ref_uri, #relationship_hash, #render, #resource_type, #to_h

Class Method Details

.class_idObject



9
10
11
# File 'lib/arc_weld/resources/group.rb', line 9

def self.class_id
  fail TypeError, 'no group resource class_id'
end

.class_rootObject



13
14
15
# File 'lib/arc_weld/resources/group.rb', line 13

def self.class_root
  fail TypeError, 'no group resource class_root'
end

.toplevelObject



21
22
23
# File 'lib/arc_weld/resources/group.rb', line 21

def self.toplevel
  fail TypeError, 'no top-level group resource reference'
end

Instance Method Details

#parent_refObject



25
26
27
# File 'lib/arc_weld/resources/group.rb', line 25

def parent_ref
  @parent_ref
end

#resource_class_idObject



17
18
19
# File 'lib/arc_weld/resources/group.rb', line 17

def resource_class_id
  fail TypeError, 'no group resource class_id'
end