Class: Worque::Command::Push::Options

Inherits:
Object
  • Object
show all
Defined in:
lib/worque/command/push/options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options)
  @channel = options[:channel]
  @for = options[:for]
  @token = ENV['SLACK_API_TOKEN']
end

Instance Attribute Details

#channelObject (readonly)

Returns the value of attribute channel.



4
5
6
# File 'lib/worque/command/push/options.rb', line 4

def channel
  @channel
end

#forObject (readonly)

Returns the value of attribute for.



6
7
8
# File 'lib/worque/command/push/options.rb', line 6

def for
  @for
end

#tokenObject (readonly)

Returns the value of attribute token.



5
6
7
# File 'lib/worque/command/push/options.rb', line 5

def token
  @token
end