You have included the HTTParty
module in your Notifier
class. This makes the methods defined within that module available on your class. When you call base_uri
and base_auth
, you're setting configuration on Notifier
, not within HTTParty
itself.
In your notify
method you should be calling post
directly instead of against HTTParty
result = post( '/receiver.json',
:query => some_message_of_mine_as_a_hash )
See the very last line of this example. Notice, the call from outside the class is on Partay.post
, not Partay.HTTParty.post
.