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.
205 206 207 |
# File 'lib/rpush/daemon/gcm/delivery.rb', line 205 def initialize super[:all] = [] end |
Instance Attribute Details
#all_failed=(value) ⇒ Object (writeonly)
Sets the attribute all_failed
203 204 205 |
# File 'lib/rpush/daemon/gcm/delivery.rb', line 203 def all_failed=(value) @all_failed = value end |
#description ⇒ Object
217 218 219 |
# File 'lib/rpush/daemon/gcm/delivery.rb', line 217 def description @description ||= describe end |
Instance Method Details
#<<(item) ⇒ Object
213 214 215 |
# File 'lib/rpush/daemon/gcm/delivery.rb', line 213 def <<(item) self[:all] << item end |
#any? ⇒ Boolean
221 222 223 |
# File 'lib/rpush/daemon/gcm/delivery.rb', line 221 def any? self[:all].any? end |
#each ⇒ Object
209 210 211 |
# File 'lib/rpush/daemon/gcm/delivery.rb', line 209 def each self[:all].each { |x| yield x } end |