Exception: Cloudflare::RequestError
- Inherits:
-
StandardError
- Object
- StandardError
- Cloudflare::RequestError
- Defined in:
- lib/cloudflare/representation.rb
Instance Attribute Summary collapse
-
#representation ⇒ Object
readonly
Returns the value of attribute representation.
Instance Method Summary collapse
-
#initialize(resource, errors) ⇒ RequestError
constructor
A new instance of RequestError.
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
#representation ⇒ Object (readonly)
Returns the value of attribute representation.
36 37 38 |
# File 'lib/cloudflare/representation.rb', line 36 def representation @representation end |