Class: Loader
- Inherits:
-
Object
- Object
- Loader
- Defined in:
- lib/shot/loader.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#client ⇒ Object
Associated EventdClient.
-
#type ⇒ Object
Loader type.
Instance Method Summary collapse
- #get(name) ⇒ Object
-
#initialize(client) ⇒ Loader
constructor
A new instance of Loader.
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
#client ⇒ Object
Associated EventdClient
18 19 20 |
# File 'lib/shot/loader.rb', line 18 def client @client end |
#type ⇒ Object
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 |