Class: Methodist::Client

Inherits:
Pattern show all
Defined in:
lib/methodist/client.rb

Overview

Methodist::Observer

Base class for Methodist clients

Defined Under Namespace

Classes: ResponseError

Class Attribute Summary collapse

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Pattern

#methodistic?

Class Attribute Details

.base_clientObject (readonly)

Returns the value of attribute base_client.



12
13
14
# File 'lib/methodist/client.rb', line 12

def base_client
  @base_client
end

Instance Attribute Details

#clientObject (readonly)

Instance method use to get defined client



22
23
24
# File 'lib/methodist/client.rb', line 22

def client
  @client
end

Class Method Details

.client(base_client) ⇒ Object



14
15
16
# File 'lib/methodist/client.rb', line 14

def client(base_client)
  @base_client = base_client
end