Class: Prpr::Action::Base
- Inherits:
-
Object
- Object
- Prpr::Action::Base
- Defined in:
- lib/prpr/action/base.rb
Instance Attribute Summary collapse
-
#event ⇒ Object
readonly
Returns the value of attribute event.
Instance Method Summary collapse
- #env ⇒ Object
-
#initialize(event) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(event) ⇒ Base
Returns a new instance of Base.
6 7 8 |
# File 'lib/prpr/action/base.rb', line 6 def initialize(event) @event = event end |
Instance Attribute Details
#event ⇒ Object (readonly)
Returns the value of attribute event.
4 5 6 |
# File 'lib/prpr/action/base.rb', line 4 def event @event end |
Instance Method Details
#env ⇒ Object
10 11 12 |
# File 'lib/prpr/action/base.rb', line 10 def env Config::Env.default end |