class Bumbleworks::Worker::Proxy
Constants
- ProxiedAttributes
Attributes
raw_hash[R]
state[W]
Public Class Methods
new(attributes)
click to toggle source
# File lib/bumbleworks/worker/proxy.rb, line 11 def initialize(attributes) @raw_hash = attributes ProxiedAttributes.each do |key| instance_variable_set(:"@#{key}", attributes[key.to_s]) end end
Public Instance Methods
==(other)
click to toggle source
# File lib/bumbleworks/worker/proxy.rb, line 36 def ==(other) raw_hash == other.raw_hash end
class_name()
click to toggle source
# File lib/bumbleworks/worker/proxy.rb, line 24 def class_name @class.to_s end
launched_at()
click to toggle source
# File lib/bumbleworks/worker/proxy.rb, line 28 def launched_at if @launched_at.is_a?(String) Time.parse(@launched_at) else @launched_at end end
storage()
click to toggle source
Allow storage to revert to the default for this Bumbleworks
instance.
# File lib/bumbleworks/worker/proxy.rb, line 20 def storage nil end