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
189 190 191 |
# File 'lib/rpush/daemon/gcm/delivery.rb', line 189 def initialize super[:all] = [] end |
Instance Attribute Details
#description ⇒ Object
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 |
#each ⇒ Object
193 194 195 |
# File 'lib/rpush/daemon/gcm/delivery.rb', line 193 def each self[:all].each { |x| yield x } end |