Exception: ProtocolError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/kotoshu/embeddings/protocol.rb

Overview

Protocol error

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(klass, protocol, missing_methods) ⇒ ProtocolError

Returns a new instance of ProtocolError.



44
45
46
47
48
49
# File 'lib/kotoshu/embeddings/protocol.rb', line 44

def initialize(klass, protocol, missing_methods)
  @klass = klass
  @protocol = protocol
  @missing_methods = missing_methods
  super("#{klass} missing: #{missing_methods.join(', ')}")
end

Instance Attribute Details

#klassObject (readonly)

Returns the value of attribute klass.



42
43
44
# File 'lib/kotoshu/embeddings/protocol.rb', line 42

def klass
  @klass
end

#missing_methodsObject (readonly)

Returns the value of attribute missing_methods.



42
43
44
# File 'lib/kotoshu/embeddings/protocol.rb', line 42

def missing_methods
  @missing_methods
end

#protocolObject (readonly)

Returns the value of attribute protocol.



42
43
44
# File 'lib/kotoshu/embeddings/protocol.rb', line 42

def protocol
  @protocol
end