Class: Occi::Infrastructure::Storagelink

Inherits:
Core::Link show all
Defined in:
lib/occi/infrastructure/storagelink.rb

Instance Attribute Summary

Attributes inherited from Core::Link

#rel, #source, #target

Attributes inherited from Core::Entity

#actions, #attributes, #id, #kind, #location, #mixins, #model

Instance Method Summary collapse

Methods inherited from Core::Link

#as_json, #check, #initialize, #to_string, #to_text_link

Methods inherited from Core::Entity

#as_json, check, #check, #initialize, new, #title, #title=, #to_header, #to_s, #to_text, type_identifier

Methods included from Helpers::Inspect

#inspect

Constructor Details

This class inherits a constructor from Occi::Core::Link

Instance Method Details

#deviceidObject


30
31
32
# File 'lib/occi/infrastructure/storagelink.rb', line 30

def deviceid
  @attributes.occi.storagelink.deviceid if @attributes.occi.storagelink if @attributes.occi
end

#deviceid=(deviceid) ⇒ Object


34
35
36
# File 'lib/occi/infrastructure/storagelink.rb', line 34

def deviceid=(deviceid)
  @attributes.occi!.storagelink!.deviceid = deviceid
end

#mountpointObject


38
39
40
# File 'lib/occi/infrastructure/storagelink.rb', line 38

def mountpoint
  @attributes.occi.storagelink.mountpoint if @attributes.occi.storagelink if @attributes.occi
end

#mountpoint=(mountpoint) ⇒ Object


42
43
44
# File 'lib/occi/infrastructure/storagelink.rb', line 42

def mountpoint=(mountpoint)
  @attributes.occi!.storagelink!.mountpoint = mountpoint
end

#stateObject


46
47
48
# File 'lib/occi/infrastructure/storagelink.rb', line 46

def state
  @attributes.occi.storagelink.state if @attributes.occi.storagelink if @attributes.occi
end

#state=(state) ⇒ Object


50
51
52
# File 'lib/occi/infrastructure/storagelink.rb', line 50

def state=(state)
  @attributes.occi!.storagelink!.state = state
end