Class: Hetzner::Bootstrap::CoreOS::CloudConfig
- Inherits:
-
Object
- Object
- Hetzner::Bootstrap::CoreOS::CloudConfig
- Defined in:
- lib/hetzner/bootstrap/coreos/cloud_config.rb
Instance Attribute Summary collapse
-
#raw_cloud_config ⇒ Object
Returns the value of attribute raw_cloud_config.
Instance Method Summary collapse
-
#initialize(param) ⇒ CloudConfig
constructor
A new instance of CloudConfig.
- #to_s ⇒ Object
Constructor Details
#initialize(param) ⇒ CloudConfig
Returns a new instance of CloudConfig.
7 8 9 10 11 12 13 |
# File 'lib/hetzner/bootstrap/coreos/cloud_config.rb', line 7 def initialize(param) if param.is_a? Hetzner::Bootstrap::CoreOS::CloudConfig return param elsif param.is_a? String @raw_cloud_config = param end end |
Instance Attribute Details
#raw_cloud_config ⇒ Object
Returns the value of attribute raw_cloud_config.
5 6 7 |
# File 'lib/hetzner/bootstrap/coreos/cloud_config.rb', line 5 def raw_cloud_config @raw_cloud_config end |
Instance Method Details
#to_s ⇒ Object
15 16 17 |
# File 'lib/hetzner/bootstrap/coreos/cloud_config.rb', line 15 def to_s @raw_cloud_config end |