Class: Boar::Handlers::Generic
- Inherits:
-
Object
- Object
- Boar::Handlers::Generic
- Includes:
- Utils::Basic
- Defined in:
- app/models/boar/handlers/generic.rb
Direct Known Subclasses
Authentication, Downloads::Base, Hosts, Locale, PathMapper, Root, Views
Instance Attribute Summary collapse
-
#configuration ⇒ Object
Returns the value of attribute configuration.
-
#service ⇒ Object
Returns the value of attribute service.
Instance Method Summary collapse
- #call(*_) ⇒ Object
-
#initialize(service, _ = nil) ⇒ Generic
constructor
A new instance of Generic.
Methods included from Utils::Basic
#ensure_hash, #get_option, #interpolate
Constructor Details
#initialize(service, _ = nil) ⇒ Generic
Returns a new instance of Generic.
15 16 17 18 |
# File 'app/models/boar/handlers/generic.rb', line 15 def initialize(service, _ = nil) @service = service @configuration = Rails.application.config.boar end |
Instance Attribute Details
#configuration ⇒ Object
Returns the value of attribute configuration.
13 14 15 |
# File 'app/models/boar/handlers/generic.rb', line 13 def configuration @configuration end |
#service ⇒ Object
Returns the value of attribute service.
12 13 14 |
# File 'app/models/boar/handlers/generic.rb', line 12 def service @service end |
Instance Method Details
#call(*_) ⇒ Object
20 21 22 |
# File 'app/models/boar/handlers/generic.rb', line 20 def call(*_) raise Boar::Exceptions::UnImplemented.new end |