Module: Tend::Util::Ht::ClassMethods
- Defined in:
- lib/tend/util/ht.rb
Instance Method Summary collapse
Instance Method Details
#get(options = {}) ⇒ Object
6 7 8 9 |
# File 'lib/tend/util/ht.rb', line 6 def get = {} o = handle_response( HTTParty.get( uri(o), :basic_auth => o.auth ) ) end |
#post(attributes, options = {}) ⇒ Object
11 12 13 14 15 |
# File 'lib/tend/util/ht.rb', line 11 def post attributes, = {} o = o.no_pagination = true handle_response( HTTParty.post( uri(o), body: attributes, :basic_auth => o.auth ) ) end |