Class: Rpush::Daemon::Gcm::Failures
- Inherits:
-
Hash
- Object
- Hash
- Rpush::Daemon::Gcm::Failures
- Includes:
- Enumerable
- Defined in:
- lib/rpush/daemon/gcm/delivery.rb
Instance Attribute Summary collapse
- #description ⇒ Object
-
#total_fail ⇒ Object
writeonly
Sets the attribute total_fail.
Instance Method Summary collapse
- #<<(item) ⇒ Object
- #each ⇒ Object
-
#initialize ⇒ Failures
constructor
A new instance of Failures.
Constructor Details
#initialize ⇒ Failures
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
#description ⇒ Object
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
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 |
#each ⇒ Object
194 195 196 |
# File 'lib/rpush/daemon/gcm/delivery.rb', line 194 def each self[:all].each { |x| yield x } end |