Class: AfTalk::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/aftalk/request.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.get(path, **options) ⇒ Object



3
4
5
# File 'lib/aftalk/request.rb', line 3

def self.get(path, **options)
  new.get(path, options)
end

.post(path, **options) ⇒ Object



7
8
9
# File 'lib/aftalk/request.rb', line 7

def self.post(path, **options)
  new.post(path, options)
end

Instance Method Details

#get(path, **options) ⇒ Object



11
12
13
# File 'lib/aftalk/request.rb', line 11

def get(path, **options)
  connection.get(complete_path(path), complete_options(options))
end

#post(path, **options) ⇒ Object



15
16
17
# File 'lib/aftalk/request.rb', line 15

def post(path, **options)
  connection.post(complete_path(path), complete_options(options))
end