Class: RudeQ::Scope

Inherits:
Object
  • Object
show all
Defined in:
lib/rude_q/scope.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(queue_name) ⇒ Scope

Returns a new instance of Scope.



6
7
8
# File 'lib/rude_q/scope.rb', line 6

def initialize(queue_name)
  @queue_name = queue_name
end

Instance Attribute Details

#queue_nameObject (readonly)

Returns the value of attribute queue_name.



9
10
11
# File 'lib/rude_q/scope.rb', line 9

def queue_name
  @queue_name
end

Instance Method Details

#backlogObject



19
20
21
# File 'lib/rude_q/scope.rb', line 19

def backlog()
  RudeQueue.backlog(self.queue_name)
end

#getObject



15
16
17
# File 'lib/rude_q/scope.rb', line 15

def get()
  RudeQueue.get(self.queue_name)
end

#set(data) ⇒ Object



11
12
13
# File 'lib/rude_q/scope.rb', line 11

def set(data)
  RudeQueue.set(self.queue_name, data)
end