Class: Qlive::Registry::Registration
- Inherits:
-
Object
- Object
- Qlive::Registry::Registration
- Defined in:
- lib/qlive/registry.rb
Instance Attribute Summary collapse
-
#extras ⇒ Object
Returns the value of attribute extras.
-
#klass ⇒ Object
Returns the value of attribute klass.
-
#name ⇒ Object
Returns the value of attribute name.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(args) ⇒ Registration
constructor
A new instance of Registration.
Constructor Details
#initialize(args) ⇒ Registration
Returns a new instance of Registration.
17 18 19 20 21 |
# File 'lib/qlive/registry.rb', line 17 def initialize(args) [ :name, :path, :klass ].each do |var| instance_variable_set("@#{var}", args[var]) end end |
Instance Attribute Details
#extras ⇒ Object
Returns the value of attribute extras.
15 16 17 |
# File 'lib/qlive/registry.rb', line 15 def extras @extras end |
#klass ⇒ Object
Returns the value of attribute klass.
14 15 16 |
# File 'lib/qlive/registry.rb', line 14 def klass @klass end |
#name ⇒ Object
Returns the value of attribute name.
12 13 14 |
# File 'lib/qlive/registry.rb', line 12 def name @name end |
#path ⇒ Object
Returns the value of attribute path.
13 14 15 |
# File 'lib/qlive/registry.rb', line 13 def path @path end |