Class: Loader

Inherits:
Object
  • Object
show all
Defined in:
lib/shot/loader.rb

Direct Known Subclasses

ConfigurationLoader

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Loader

Returns a new instance of Loader.



20
21
22
# File 'lib/shot/loader.rb', line 20

def initialize(client)
	@client = client
end

Instance Attribute Details

#clientObject

Associated EventdClient



18
19
20
# File 'lib/shot/loader.rb', line 18

def client
  @client
end

#typeObject

Loader type



15
16
17
# File 'lib/shot/loader.rb', line 15

def type
  @type
end

Instance Method Details

#get(name) ⇒ Object



24
25
26
# File 'lib/shot/loader.rb', line 24

def get(name)
	raise LoaderException.new 'Custom Loader #get method has not been overridden.'
end