Exception: Graphiti::Errors::InvalidType
- Defined in:
- lib/graphiti/errors.rb
Instance Method Summary collapse
-
#initialize(key, value) ⇒ InvalidType
constructor
A new instance of InvalidType.
- #message ⇒ Object
Constructor Details
permalink #initialize(key, value) ⇒ InvalidType
Returns a new instance of InvalidType.
452 453 454 455 |
# File 'lib/graphiti/errors.rb', line 452 def initialize(key, value) @key = key @value = value end |
Instance Method Details
permalink #message ⇒ Object
[View source]
457 458 459 |
# File 'lib/graphiti/errors.rb', line 457 def "Type must be a Hash with keys #{Types::REQUIRED_KEYS.inspect}" end |