Class: CloudFormer::Parameter

Inherits:
Object
  • Object
show all
Includes:
HasPropertiesAndAttributes, MakesJson
Defined in:
lib/cloud_former/parameters/parameter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from MakesJson

#dump_json, included

Methods included from HasPropertiesAndAttributes

included, #nested_resources, #resource_tree

Constructor Details

#initialize(name, &block) ⇒ Parameter

Returns a new instance of Parameter.



22
23
24
25
26
27
# File 'lib/cloud_former/parameters/parameter.rb', line 22

def initialize(name, &block)
  @name = name
  if block_given?
    self.instance_eval(&block)
  end
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



18
19
20
# File 'lib/cloud_former/parameters/parameter.rb', line 18

def type
  @type
end

Instance Method Details

#get_nameObject



29
30
31
# File 'lib/cloud_former/parameters/parameter.rb', line 29

def get_name
  @name
end