Class: Worque::Command::Push::Options
- Inherits:
-
Object
- Object
- Worque::Command::Push::Options
- Defined in:
- lib/worque/command/push/options.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
readonly
Returns the value of attribute channel.
-
#for ⇒ Object
readonly
Returns the value of attribute for.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(options) ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize(options) ⇒ Options
Returns a new instance of Options.
8 9 10 11 12 |
# File 'lib/worque/command/push/options.rb', line 8 def initialize() @channel = [:channel] @for = [:for] @token = ENV['SLACK_API_TOKEN'] end |
Instance Attribute Details
#channel ⇒ Object (readonly)
Returns the value of attribute channel.
4 5 6 |
# File 'lib/worque/command/push/options.rb', line 4 def channel @channel end |
#for ⇒ Object (readonly)
Returns the value of attribute for.
6 7 8 |
# File 'lib/worque/command/push/options.rb', line 6 def for @for end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
5 6 7 |
# File 'lib/worque/command/push/options.rb', line 5 def token @token end |