Class: StudioApi::Pattern
- Inherits:
-
Object
- Object
- StudioApi::Pattern
- Defined in:
- lib/studio_api/pattern.rb
Overview
Represents pattern in appliance. Used mainly as data storage.
Instance Attribute Summary collapse
-
#arch ⇒ Object
Returns the value of attribute arch.
-
#name ⇒ Object
Returns the value of attribute name.
-
#repository_id ⇒ Object
Returns the value of attribute repository_id.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(name, attributes = {}) ⇒ Pattern
constructor
A new instance of Pattern.
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
#arch ⇒ Object
Returns the value of attribute arch.
4 5 6 |
# File 'lib/studio_api/pattern.rb', line 4 def arch @arch end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/studio_api/pattern.rb', line 4 def name @name end |
#repository_id ⇒ Object
Returns the value of attribute repository_id.
4 5 6 |
# File 'lib/studio_api/pattern.rb', line 4 def repository_id @repository_id end |
#version ⇒ Object
Returns the value of attribute version.
4 5 6 |
# File 'lib/studio_api/pattern.rb', line 4 def version @version end |