Class: Rpush::Daemon::Gcm::Failures

Inherits:
Hash
  • Object
show all
Includes:
Enumerable
Defined in:
lib/rpush/daemon/gcm/delivery.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFailures

Returns a new instance of Failures.



190
191
192
# File 'lib/rpush/daemon/gcm/delivery.rb', line 190

def initialize
  super[:all] = []
end

Instance Attribute Details

#descriptionObject



202
203
204
# File 'lib/rpush/daemon/gcm/delivery.rb', line 202

def description
  @description ||= describe
end

#total_fail=(value) ⇒ Object (writeonly)

Sets the attribute total_fail

Parameters:

  • value

    the value to set the attribute total_fail to.



188
189
190
# File 'lib/rpush/daemon/gcm/delivery.rb', line 188

def total_fail=(value)
  @total_fail = value
end

Instance Method Details

#<<(item) ⇒ Object



198
199
200
# File 'lib/rpush/daemon/gcm/delivery.rb', line 198

def <<(item)
  self[:all] << item
end

#eachObject



194
195
196
# File 'lib/rpush/daemon/gcm/delivery.rb', line 194

def each
  self[:all].each { |x| yield x }
end