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
-
#all_failed ⇒ Object
writeonly
Sets the attribute all_failed.
- #description ⇒ Object
Instance Method Summary collapse
- #<<(item) ⇒ Object
- #any? ⇒ Boolean
- #each ⇒ Object
-
#initialize ⇒ Failures
constructor
A new instance of Failures.
Constructor Details
#initialize ⇒ Failures
Returns a new instance of Failures.
191 192 193 |
# File 'lib/rpush/daemon/gcm/delivery.rb', line 191 def initialize super[:all] = [] end |
Instance Attribute Details
#all_failed=(value) ⇒ Object (writeonly)
Sets the attribute all_failed
189 190 191 |
# File 'lib/rpush/daemon/gcm/delivery.rb', line 189 def all_failed=(value) @all_failed = value end |
#description ⇒ Object
203 204 205 |
# File 'lib/rpush/daemon/gcm/delivery.rb', line 203 def description @description ||= describe end |
Instance Method Details
#<<(item) ⇒ Object
199 200 201 |
# File 'lib/rpush/daemon/gcm/delivery.rb', line 199 def <<(item) self[:all] << item end |
#any? ⇒ Boolean
207 208 209 |
# File 'lib/rpush/daemon/gcm/delivery.rb', line 207 def any? self[:all].any? end |
#each ⇒ Object
195 196 197 |
# File 'lib/rpush/daemon/gcm/delivery.rb', line 195 def each self[:all].each { |x| yield x } end |