Class: HookSniff::Models::Stats
- Inherits:
-
Object
- Object
- HookSniff::Models::Stats
- Defined in:
- lib/hooksniff/models.rb
Instance Attribute Summary collapse
-
#delivered ⇒ Object
readonly
Returns the value of attribute delivered.
-
#endpoints_count ⇒ Object
readonly
Returns the value of attribute endpoints_count.
-
#failed ⇒ Object
readonly
Returns the value of attribute failed.
-
#pending ⇒ Object
readonly
Returns the value of attribute pending.
-
#success_rate ⇒ Object
readonly
Returns the value of attribute success_rate.
-
#total_deliveries ⇒ Object
readonly
Returns the value of attribute total_deliveries.
Instance Method Summary collapse
-
#initialize(data) ⇒ Stats
constructor
A new instance of Stats.
Constructor Details
#initialize(data) ⇒ Stats
Returns a new instance of Stats.
126 127 128 129 130 131 132 133 |
# File 'lib/hooksniff/models.rb', line 126 def initialize(data) @total_deliveries = data["total_deliveries"] @delivered = data["delivered"] @failed = data["failed"] @pending = data["pending"] @success_rate = data["success_rate"] @endpoints_count = data["endpoints_count"] end |
Instance Attribute Details
#delivered ⇒ Object (readonly)
Returns the value of attribute delivered.
124 125 126 |
# File 'lib/hooksniff/models.rb', line 124 def delivered @delivered end |
#endpoints_count ⇒ Object (readonly)
Returns the value of attribute endpoints_count.
124 125 126 |
# File 'lib/hooksniff/models.rb', line 124 def endpoints_count @endpoints_count end |
#failed ⇒ Object (readonly)
Returns the value of attribute failed.
124 125 126 |
# File 'lib/hooksniff/models.rb', line 124 def failed @failed end |
#pending ⇒ Object (readonly)
Returns the value of attribute pending.
124 125 126 |
# File 'lib/hooksniff/models.rb', line 124 def pending @pending end |
#success_rate ⇒ Object (readonly)
Returns the value of attribute success_rate.
124 125 126 |
# File 'lib/hooksniff/models.rb', line 124 def success_rate @success_rate end |
#total_deliveries ⇒ Object (readonly)
Returns the value of attribute total_deliveries.
124 125 126 |
# File 'lib/hooksniff/models.rb', line 124 def total_deliveries @total_deliveries end |