Class: Avm::EacWebappBase0::Instances::DeployInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/eac_webapp_base0/instances/deploy_info.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_hash(hash) ⇒ Avm::EacWebappBase0::Instances::DeployInfo

Parameters:

  • hash (Hash)

Returns:



12
13
14
# File 'lib/avm/eac_webapp_base0/instances/deploy_info.rb', line 12

def from_hash(hash)
  new(hash)
end

.from_string(string) ⇒ Avm::EacWebappBase0::Instances::DeployInfo



18
19
20
# File 'lib/avm/eac_webapp_base0/instances/deploy_info.rb', line 18

def from_string(string)
  from_hash(::EacRubyUtils::Yaml.load(string))
end

Instance Method Details

#to_hHash

Returns:

  • (Hash)


28
# File 'lib/avm/eac_webapp_base0/instances/deploy_info.rb', line 28

delegate :to_h, to: :data

#to_yamlString

Returns:

  • (String)


31
32
33
# File 'lib/avm/eac_webapp_base0/instances/deploy_info.rb', line 31

def to_yaml
  ::EacRubyUtils::Yaml.dump(to_h)
end