Class: JIJI::ErrorSession

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

Overview

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

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ ErrorSession

Returns a new instance of ErrorSession.



88
89
90
# File 'lib/jiji/single_click_client.rb', line 88

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)


91
92
93
# File 'lib/jiji/single_click_client.rb', line 91

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