Class: GlimrApiClient::Base

Inherits:
Object
  • Object
show all
Includes:
Api
Defined in:
lib/glimr_api_client/base.rb

Instance Attribute Summary collapse

Attributes included from Api

#response_body

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Api

#post, #timeout

Constructor Details

#initialize(*args) ⇒ Base

Returns a new instance of Base.



10
11
12
# File 'lib/glimr_api_client/base.rb', line 10

def initialize(*args)
  @args = args
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



4
5
6
# File 'lib/glimr_api_client/base.rb', line 4

def args
  @args
end

Class Method Details

.call(*args) ⇒ Object



6
7
8
# File 'lib/glimr_api_client/base.rb', line 6

def self.call(*args)
  new(*args).call
end

Instance Method Details

#callObject



14
15
16
17
18
# File 'lib/glimr_api_client/base.rb', line 14

def call
  check_request!
  post
  self
end

#check_request!Object



20
21
# File 'lib/glimr_api_client/base.rb', line 20

def check_request!
end