Class: StudioApi::Pattern

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

Overview

Represents pattern in appliance. Used mainly as data storage.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Pattern.



5
6
7
8
9
10
# File 'lib/studio_api/pattern.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/pattern.rb', line 4

def arch
  @arch
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#repository_idObject

Returns the value of attribute repository_id.



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

def repository_id
  @repository_id
end

#versionObject

Returns the value of attribute version.



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

def version
  @version
end