Class: JIJI::Plugin::ErrorSession

Inherits:
Object
  • Object
show all
Defined in:
lib/jiji/plugin/embedded/single_click_client.rb

Overview

接続エラー時に使用するセッション 常にエラーをスローする。

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ ErrorSession

Returns a new instance of ErrorSession.



107
108
109
# File 'lib/jiji/plugin/embedded/single_click_client.rb', line 107

def initialize(error)
  @error = error
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &block) ⇒ Object

Raises:

  • (@error)


110
111
112
# File 'lib/jiji/plugin/embedded/single_click_client.rb', line 110

def method_missing(name, *args, &block)
  raise @error
end