Method: Atlas::BoxVersion#initialize

Defined in:
lib/atlas/box_version.rb

#initialize(tag, hash = {}) ⇒ BoxVersion

Initialize a version from a versiontag and object hash.

Parameters:

  • tag (String)

    the tag which represents the origin of the version.

  • hash (Hash) (defaults to: {})

    the attributes for the version.

  • attr (String)

    :version The version number.

  • attr (String)

    :description Description of the box.



50
51
52
53
54
# File 'lib/atlas/box_version.rb', line 50

def initialize(tag, hash = {})
  hash.replace_key!("description_markdown", "description")

  super(tag, hash)
end