Class: HookSniff::Models::BatchResult
- Inherits:
-
Object
- Object
- HookSniff::Models::BatchResult
- Defined in:
- lib/hooksniff/models.rb
Instance Attribute Summary collapse
-
#deliveries ⇒ Object
readonly
Returns the value of attribute deliveries.
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(data) ⇒ BatchResult
constructor
A new instance of BatchResult.
Constructor Details
#initialize(data) ⇒ BatchResult
Returns a new instance of BatchResult.
117 118 119 120 |
# File 'lib/hooksniff/models.rb', line 117 def initialize(data) @deliveries = (data["deliveries"] || []).map { |d| Delivery.new(d) } @errors = data["errors"] || [] end |
Instance Attribute Details
#deliveries ⇒ Object (readonly)
Returns the value of attribute deliveries.
115 116 117 |
# File 'lib/hooksniff/models.rb', line 115 def deliveries @deliveries end |
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
115 116 117 |
# File 'lib/hooksniff/models.rb', line 115 def errors @errors end |