Class: AfTalk::Request
- Inherits:
-
Object
- Object
- AfTalk::Request
- 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, **) new.get(path, ) end |
.post(path, **options) ⇒ Object
7 8 9 |
# File 'lib/aftalk/request.rb', line 7 def self.post(path, **) new.post(path, ) end |
Instance Method Details
#get(path, **options) ⇒ Object
11 12 13 |
# File 'lib/aftalk/request.rb', line 11 def get(path, **) connection.get(complete_path(path), ()) end |
#post(path, **options) ⇒ Object
15 16 17 |
# File 'lib/aftalk/request.rb', line 15 def post(path, **) connection.post(complete_path(path), ()) end |