Class: Driftwood::Plugin
- Inherits:
-
Object
- Object
- Driftwood::Plugin
- Defined in:
- lib/driftwood/plugin.rb
Defined Under Namespace
Classes: Debug, Logger, Netserv, Onboard
Instance Attribute Summary collapse
-
#about ⇒ Object
readonly
Returns the value of attribute about.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#usage ⇒ Object
readonly
Returns the value of attribute usage.
Instance Method Summary collapse
-
#initialize(config = nil, slack = nil, bigquery = nil) ⇒ Plugin
constructor
just sets up the namespace for now.
Constructor Details
#initialize(config = nil, slack = nil, bigquery = nil) ⇒ Plugin
just sets up the namespace for now
6 7 8 9 10 11 12 |
# File 'lib/driftwood/plugin.rb', line 6 def initialize(config=nil, slack=nil, bigquery=nil) @about = 'The default base plugin' @name = self.class.name.split('::').last.downcase @config = config @slack = slack @bigquery = bigquery end |
Instance Attribute Details
#about ⇒ Object (readonly)
Returns the value of attribute about.
3 4 5 |
# File 'lib/driftwood/plugin.rb', line 3 def about @about end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/driftwood/plugin.rb', line 3 def name @name end |
#usage ⇒ Object (readonly)
Returns the value of attribute usage.
3 4 5 |
# File 'lib/driftwood/plugin.rb', line 3 def usage @usage end |