class Pocus::ResponseArray

Combine array of resources returned by API with error and warning attributes.

Attributes

errors[R]
warnings[R]

Public Class Methods

new(resources, errors, warnings) click to toggle source
Calls superclass method
# File lib/pocus/resource.rb, line 6
def initialize(resources, errors, warnings)
  @errors = (errors || [])
  @warnings = (warnings || [])
  super resources
end