class AwsProvisioner::Resource
Attributes
name[R]
properties[R]
type[R]
Public Class Methods
new(type, name, hash={})
click to toggle source
# File lib/aws_provisioner/resource.rb, line 8 def initialize(type, name, hash={}) @name = name or raise ArgumentError @properties = Properties.new(hash) @type = type end
Public Instance Methods
to_h()
click to toggle source
# File lib/aws_provisioner/resource.rb, line 14 def to_h h = properties.to_t h["Type"] = type h end