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.



9
10
11
12
13
14
# File 'lib/worque/command/push/options.rb', line 9

def initialize(options)
  @channel = options[:channel]
  @path = options[:path]
  @for = options[:for]
  @token = options[: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

#pathObject (readonly)

Returns the value of attribute path.



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

def path
  @path
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