class Occi::Core::Action
Public Class Methods
new(scheme='http://schemas.ogf.org/occi/core
click to toggle source
@param [String] scheme @param [String] term @param [String] title @param [Hash] attributes
Calls superclass method
Occi::Core::Category.new
# File lib/occi/core/action.rb, line 9 def initialize(scheme='http://schemas.ogf.org/occi/core#', term='action', title=nil, attributes=Occi::Core::Attributes.new) super(scheme, term, title, attributes) end
Public Instance Methods
to_header()
click to toggle source
@return [Hash] hash containing the HTTP headers of the text/occi rendering
Calls superclass method
Occi::Core::Category#to_header
# File lib/occi/core/action.rb, line 24 def to_header header = super header[:Category] << "#{@attributes.to_string_short}" header end
to_text()
click to toggle source
@return [String] text representation
Calls superclass method
Occi::Core::Category#to_text
# File lib/occi/core/action.rb, line 17 def to_text text = super text << "#{@attributes.to_string_short}" text end