Class: DeltaCloud::Documentation::OperationParameter

Inherits:
Object
  • Object
show all
Defined in:
lib/deltacloud.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (OperationParameter) initialize(data)

A new instance of OperationParameter



399
400
401
# File 'lib/deltacloud.rb', line 399

def initialize(data)
  @name, @type, @required, @description = data[:name], data[:type], data[:required], data[:description]
end

Instance Attribute Details

- (Object) description (readonly)

Returns the value of attribute description



397
398
399
# File 'lib/deltacloud.rb', line 397

def description
  @description
end

- (Object) name (readonly)

Returns the value of attribute name



394
395
396
# File 'lib/deltacloud.rb', line 394

def name
  @name
end

- (Object) required (readonly)

Returns the value of attribute required



396
397
398
# File 'lib/deltacloud.rb', line 396

def required
  @required
end

- (Object) type (readonly)

Returns the value of attribute type



395
396
397
# File 'lib/deltacloud.rb', line 395

def type
  @type
end

Instance Method Details

- (Object) to_comment



403
404
405
# File 'lib/deltacloud.rb', line 403

def to_comment
  "   # @param [#{@type}, #{@name}] #{@description}"
end