Class: ArcWeld::AssetCategory
- Inherits:
-
Object
- Object
- ArcWeld::AssetCategory
show all
- Includes:
- Relationship, Resource
- Defined in:
- lib/arc_weld/resources/asset_category.rb
Instance Method Summary
collapse
included, #relationship_hash, #relationship_types
Methods included from Resource
#identity, #identity_hash, included, #parent_ref, #parent_ref=, #parent_uri=, #property_hash, #ref_uri, #relationship_hash, #render, #resource_class_id, #resource_type
Instance Method Details
#containedResourceType ⇒ Object
23
24
25
|
# File 'lib/arc_weld/resources/asset_category.rb', line 23
def containedResourceType
resource_class_id
end
|
#ref ⇒ Object
14
15
16
17
18
19
20
|
# File 'lib/arc_weld/resources/asset_category.rb', line 14
def ref
ArcWeld::Reference.new({
type: 'Group',
uri: ref_uri
}.merge(identity)
)
end
|
#to_h ⇒ Object
28
29
30
31
32
33
34
35
36
37
38
|
# File 'lib/arc_weld/resources/asset_category.rb', line 28
def to_h
resource_h = {
'Group' => {
'childOf' => { 'list!' => parent_ref.render },
'@name' => name,
'@action' => action
}.merge(identity_hash)
.merge(property_hash)
.merge(relationship_hash)
}
end
|