Module: DisplayWords::Request
- Included in:
- API
- Defined in:
- lib/display_words/request.rb,
lib/display_words/authentication.rb
Defined Under Namespace
Modules: Authentication
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/display_words/request.rb', line 5 def self.included(base) base.class_eval do include HTTParty include Authentication end end |
Instance Method Details
#get(path, options = {}) ⇒ Object
12 13 14 |
# File 'lib/display_words/request.rb', line 12 def get(path, = {}) request(:get, path, ) end |
#post(path, options = {}) ⇒ Object
16 17 18 |
# File 'lib/display_words/request.rb', line 16 def post(path, = {}) request(:post, path, ) end |