Exception: Airtable::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Airtable::Error
- Defined in:
- lib/airtable/error.rb
Overview
Error class
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(error_hash) ⇒ Error
constructor
“message”=>“Could not find fields foo”}.
Constructor Details
#initialize(error_hash) ⇒ Error
“message”=>“Could not find fields foo”}
9 10 11 12 13 |
# File 'lib/airtable/error.rb', line 9 def initialize(error_hash) @message = error_hash['message'] @type = error_hash['type'] super(@message) end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
5 6 7 |
# File 'lib/airtable/error.rb', line 5 def @message end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/airtable/error.rb', line 5 def type @type end |