Class: Roadworker::DSL::HostedZone
- Inherits:
-
Object
- Object
- Roadworker::DSL::HostedZone
- Defined in:
- lib/roadworker/dsl.rb
Defined Under Namespace
Classes: ResourceRecordSet
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(name, &block) ⇒ HostedZone
constructor
A new instance of HostedZone.
Constructor Details
#initialize(name, &block) ⇒ HostedZone
Returns a new instance of HostedZone.
56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/roadworker/dsl.rb', line 56 def initialize(name, &block) @name = name rrsets = [] @result = OpenStruct.new({ :name => name, :resource_record_sets => rrsets, :rrsets => rrsets, }) instance_eval(&block) end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
54 55 56 |
# File 'lib/roadworker/dsl.rb', line 54 def result @result end |