Class: Occi::Core::Action_instance

Inherits:
Object
  • Object
show all
Defined in:
lib/occi/core/action_instance.rb

Class Attribute Summary collapse

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action = self.action, attributes = self.action.attributes) ⇒ Action_instance

Returns a new instance of Action_instance


13
14
15
16
17
18
19
20
# File 'lib/occi/core/action_instance.rb', line 13

def initialize(action = self.action, attributes=self.action.attributes)
  if action.kind_of? String
    scheme, term = action.split '#'
    action = Occi::Core::Action.new(scheme, term)
  end
  @action     = action
  @attributes = Occi::Core::Attributes.new attributes
end

Class Attribute Details

.actionsObject

Returns the value of attribute actions


6
7
8
# File 'lib/occi/core/action_instance.rb', line 6

def actions
  @actions
end

Instance Attribute Details

#actionObject

Returns the value of attribute action


9
10
11
# File 'lib/occi/core/action_instance.rb', line 9

def action
  @action
end

#attributesObject

Returns the value of attribute attributes


9
10
11
# File 'lib/occi/core/action_instance.rb', line 9

def attributes
  @attributes
end

#modelObject

Returns the value of attribute model


9
10
11
# File 'lib/occi/core/action_instance.rb', line 9

def model
  @model
end