Class: Roadworker::DSL::Hostedzone::ResourceRecordSet
- Inherits:
-
Object
- Object
- Roadworker::DSL::Hostedzone::ResourceRecordSet
- Includes:
- TemplateHelper
- Defined in:
- lib/roadworker/dsl.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(context, name, type, &block) ⇒ ResourceRecordSet
constructor
A new instance of ResourceRecordSet.
Methods included from TemplateHelper
Constructor Details
#initialize(context, name, type, &block) ⇒ ResourceRecordSet
Returns a new instance of ResourceRecordSet.
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 |
# File 'lib/roadworker/dsl.rb', line 131 def initialize(context, name, type, &block) name = DSL.normalize_dns_name(name) type = type.upcase @context = context.merge( :rrset_name => name, :rrset_type => type ) @result = OpenStruct.new({ :name => name, :type => type, }) instance_eval(&block) end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
129 130 131 |
# File 'lib/roadworker/dsl.rb', line 129 def result @result end |