Sha256: fc36e8141646efc7cde1438a662b3fe229729eb067b2606527ffbdd5d4dc36ef

Contents?: true

Size: 838 Bytes

Versions: 6

Compression:

Stored size: 838 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'

module Avm
  module EacWebappBase0
    module Instances
      class DeployInfo
        class << self
          # @param hash [Hash]
          # @return [Avm::EacWebappBase0::Instances::DeployInfo]
          def from_hash(hash)
            new(hash)
          end

          # @return string [String]
          # @return [Avm::EacWebappBase0::Instances::DeployInfo]
          def from_string(string)
            from_hash(::EacRubyUtils::Yaml.load(string))
          end
        end

        common_constructor :data do
          self.data = data.with_indifferent_access
        end

        # @return [Hash]
        delegate :to_h, to: :data

        # @return [String]
        def to_yaml
          ::EacRubyUtils::Yaml.dump(to_h)
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
avm-eac_webapp_base0-0.20.1 lib/avm/eac_webapp_base0/instances/deploy_info.rb
eac_tools-0.94.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/deploy_info.rb
avm-eac_webapp_base0-0.20.0 lib/avm/eac_webapp_base0/instances/deploy_info.rb
eac_tools-0.93.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/deploy_info.rb
avm-eac_webapp_base0-0.19.0 lib/avm/eac_webapp_base0/instances/deploy_info.rb
eac_tools-0.87.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/deploy_info.rb