Exception: Kotoshu::Embeddings::ProtocolError
- Inherits:
-
StandardError
- Object
- StandardError
- Kotoshu::Embeddings::ProtocolError
- Defined in:
- lib/kotoshu/embeddings/protocol.rb
Overview
Protocol error
Instance Attribute Summary collapse
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
-
#missing_methods ⇒ Object
readonly
Returns the value of attribute missing_methods.
-
#protocol ⇒ Object
readonly
Returns the value of attribute protocol.
Instance Method Summary collapse
-
#initialize(klass, protocol, missing_methods) ⇒ ProtocolError
constructor
A new instance of ProtocolError.
Constructor Details
#initialize(klass, protocol, missing_methods) ⇒ ProtocolError
Returns a new instance of ProtocolError.
55 56 57 58 59 60 |
# File 'lib/kotoshu/embeddings/protocol.rb', line 55 def initialize(klass, protocol, missing_methods) @klass = klass @protocol = protocol @missing_methods = missing_methods super("#{klass} missing: #{missing_methods.join(', ')}") end |
Instance Attribute Details
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
53 54 55 |
# File 'lib/kotoshu/embeddings/protocol.rb', line 53 def klass @klass end |
#missing_methods ⇒ Object (readonly)
Returns the value of attribute missing_methods.
53 54 55 |
# File 'lib/kotoshu/embeddings/protocol.rb', line 53 def missing_methods @missing_methods end |
#protocol ⇒ Object (readonly)
Returns the value of attribute protocol.
53 54 55 |
# File 'lib/kotoshu/embeddings/protocol.rb', line 53 def protocol @protocol end |