Exception: Cloudflare::RequestError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cloudflare/representation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource, errors) ⇒ RequestError

Returns a new instance of RequestError.



30
31
32
33
34
# File 'lib/cloudflare/representation.rb', line 30

def initialize(resource, errors)
  super("#{resource}: #{errors.map{|attributes| attributes[:message]}.join(', ')}")

  @representation = representation
end

Instance Attribute Details

#representationObject (readonly)

Returns the value of attribute representation.



36
37
38
# File 'lib/cloudflare/representation.rb', line 36

def representation
  @representation
end