Class: CloudBuilder::Reference::Attribute

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

Instance Method Summary collapse

Constructor Details

#initialize(name, att) ⇒ Attribute

Returns a new instance of Attribute.



51
52
53
54
# File 'lib/cloud_builder/reference.rb', line 51

def initialize(name, att)
  @name = name
  @att = att
end

Instance Method Details

#to_json_dataObject



56
57
58
# File 'lib/cloud_builder/reference.rb', line 56

def to_json_data
  {GET_ATT => [DSL.format(@name), DSL.format(@att)]}
end