Exception: CartoJson::InvalidTypeError
- Defined in:
- lib/carto_json/errors.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, message) ⇒ InvalidTypeError
constructor
A new instance of InvalidTypeError.
Constructor Details
#initialize(type, message) ⇒ InvalidTypeError
Returns a new instance of InvalidTypeError.
11 12 13 14 |
# File 'lib/carto_json/errors.rb', line 11 def initialize(type, ) @type = type.to_sym super end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
9 10 11 |
# File 'lib/carto_json/errors.rb', line 9 def type @type end |