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
#initialize(key, value) ⇒ InvalidType
Returns a new instance of InvalidType.
460 461 462 463 |
# File 'lib/graphiti/errors.rb', line 460 def initialize(key, value) @key = key @value = value end |
Instance Method Details
#message ⇒ Object
465 466 467 |
# File 'lib/graphiti/errors.rb', line 465 def "Type must be a Hash with keys #{Types::REQUIRED_KEYS.inspect}" end |