Module: Vindi::Rest::Message
- Included in:
- Vindi::Rest
- Defined in:
- lib/vindi/rest/message.rb
Overview
Methods for the messages API
Instance Method Summary collapse
-
#create_message(options = {}) ⇒ Hash
Create a message for a merchant vindi.
-
#list_messages(options = {}) ⇒ Array<Hash>
List messages for the authenticate user.
-
#message(message_id, options = {}) ⇒ Hash
Get a single message from a merchant.
Instance Method Details
#create_message(options = {}) ⇒ Hash
Create a message for a merchant vindi
36 37 38 |
# File 'lib/vindi/rest/message.rb', line 36 def ( = {}) post('messages', )[:message] end |
#list_messages(options = {}) ⇒ Array<Hash>
List messages for the authenticate user
13 14 15 |
# File 'lib/vindi/rest/message.rb', line 13 def ( = {}) get('messages', )[:messages] end |
#message(message_id, options = {}) ⇒ Hash
Get a single message from a merchant
24 25 26 |
# File 'lib/vindi/rest/message.rb', line 24 def (, = {}) get("messages/#{}", )[:message] end |