Class: Railswatch::Widgets::Base
- Inherits:
-
Object
- Object
- Railswatch::Widgets::Base
- Defined in:
- lib/railswatch/widgets/base.rb
Instance Attribute Summary collapse
-
#datasource ⇒ Object
readonly
Returns the value of attribute datasource.
Instance Method Summary collapse
-
#initialize(datasource) ⇒ Base
constructor
A new instance of Base.
- #to_partial_path ⇒ Object
Constructor Details
#initialize(datasource) ⇒ Base
Returns a new instance of Base.
8 9 10 |
# File 'lib/railswatch/widgets/base.rb', line 8 def initialize(datasource) @datasource = datasource end |
Instance Attribute Details
#datasource ⇒ Object (readonly)
Returns the value of attribute datasource.
6 7 8 |
# File 'lib/railswatch/widgets/base.rb', line 6 def datasource @datasource end |
Instance Method Details
#to_partial_path ⇒ Object
12 13 14 |
# File 'lib/railswatch/widgets/base.rb', line 12 def to_partial_path raise NotImplementedError end |