Module: Helicoid::Loom
- Defined in:
- lib/loom.rb
Defined Under Namespace
Modules: ClassMethods, Reporter
Class Attribute Summary collapse
-
.api_key ⇒ Object
Returns the value of attribute api_key.
-
.before_action ⇒ Object
Returns the value of attribute before_action.
-
.server ⇒ Object
Returns the value of attribute server.
-
.user_id ⇒ Object
Returns the value of attribute user_id.
Class Method Summary collapse
Class Attribute Details
.api_key ⇒ Object
Returns the value of attribute api_key.
4 5 6 |
# File 'lib/loom.rb', line 4 def api_key @api_key end |
.before_action ⇒ Object
Returns the value of attribute before_action.
4 5 6 |
# File 'lib/loom.rb', line 4 def before_action @before_action end |
.server ⇒ Object
Returns the value of attribute server.
4 5 6 |
# File 'lib/loom.rb', line 4 def server @server end |
.user_id ⇒ Object
Returns the value of attribute user_id.
4 5 6 |
# File 'lib/loom.rb', line 4 def user_id @user_id end |
Class Method Details
.configure {|_self| ... } ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/loom.rb', line 12 def configure yield self self.server ||= 'http://loomapp.com' if defined?(ActionController::Base) && !ActionController::Base.include?(Helicoid::Loom::Reporter) enable end end |
.enable ⇒ Object
6 7 8 9 10 |
# File 'lib/loom.rb', line 6 def enable ActionController::Base.class_eval do include Reporter end end |