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

- (Pattern) initialize(name, attributes = {})

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

- (Object) arch

Returns the value of attribute arch



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

def arch
  @arch
end

- (Object) name

Returns the value of attribute name



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

def name
  @name
end

- (Object) repository_id

Returns the value of attribute repository_id



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

def repository_id
  @repository_id
end

- (Object) version

Returns the value of attribute version



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

def version
  @version
end