Class: Qlive::Registry::Registration

Inherits:
Object
  • Object
show all
Defined in:
lib/qlive/registry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#extrasObject

Returns the value of attribute extras.



15
16
17
# File 'lib/qlive/registry.rb', line 15

def extras
  @extras
end

#klassObject

Returns the value of attribute klass.



14
15
16
# File 'lib/qlive/registry.rb', line 14

def klass
  @klass
end

#nameObject

Returns the value of attribute name.



12
13
14
# File 'lib/qlive/registry.rb', line 12

def name
  @name
end

#pathObject

Returns the value of attribute path.



13
14
15
# File 'lib/qlive/registry.rb', line 13

def path
  @path
end