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



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

def initialize
  super[:all] = []
end

Instance Attribute Details

#descriptionObject



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

def description
  @description ||= describe
end

#total_fail=(value) ⇒ Object (writeonly)

Sets the attribute total_fail



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

def total_fail=(value)
  @total_fail = value
end

Instance Method Details

#<<(item) ⇒ Object



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

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

#eachObject



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

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