Class: CloudFormer::Functions::Base64
- Inherits:
-
CloudFormer::Function
- Object
- CloudFormer::Function
- CloudFormer::Functions::Base64
- Defined in:
- lib/cloud_former/functions/base_64.rb
Instance Method Summary collapse
- #acts_as_string? ⇒ Boolean
- #dump_json ⇒ Object
-
#initialize(data) ⇒ Base64
constructor
A new instance of Base64.
Constructor Details
#initialize(data) ⇒ Base64
Returns a new instance of Base64.
5 6 7 |
# File 'lib/cloud_former/functions/base_64.rb', line 5 def initialize(data) @data = data end |
Instance Method Details
#acts_as_string? ⇒ Boolean
13 14 15 |
# File 'lib/cloud_former/functions/base_64.rb', line 13 def acts_as_string? true end |
#dump_json ⇒ Object
9 10 11 |
# File 'lib/cloud_former/functions/base_64.rb', line 9 def dump_json { 'Fn::Base64' => transform_data(@data) } end |