Class: StudioApi::Package

Inherits:
Object
  • Object
show all
Defined in:
lib/studio_api/package.rb

Overview

Represents package in appliance. Used mainly as data storage.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, attributes = {}) ⇒ Package



5
6
7
8
9
10
# File 'lib/studio_api/package.rb', line 5

def initialize name, attributes = {}
  @name = name
  attributes.each do |k,v|
    instance_variable_set "@#{k}", v
  end
end

Instance Attribute Details

#archObject

Returns the value of attribute arch



4
5
6
# File 'lib/studio_api/package.rb', line 4

def arch
  @arch
end

#checksumObject

Returns the value of attribute checksum



4
5
6
# File 'lib/studio_api/package.rb', line 4

def checksum
  @checksum
end

#checksum_typeObject

Returns the value of attribute checksum_type



4
5
6
# File 'lib/studio_api/package.rb', line 4

def checksum_type
  @checksum_type
end

#nameObject

Returns the value of attribute name



4
5
6
# File 'lib/studio_api/package.rb', line 4

def name
  @name
end

#repository_idObject

Returns the value of attribute repository_id



4
5
6
# File 'lib/studio_api/package.rb', line 4

def repository_id
  @repository_id
end

#versionObject

Returns the value of attribute version



4
5
6
# File 'lib/studio_api/package.rb', line 4

def version
  @version
end