Class: Message
- Inherits:
-
Object
- Object
- Message
- Defined in:
- lib/tacklebox/components/message.rb
Instance Attribute Summary collapse
-
#api ⇒ Object
Returns the value of attribute api.
Instance Method Summary collapse
- #get(service_id, user_id, message_id) ⇒ Object
-
#initialize(config) ⇒ Message
constructor
A new instance of Message.
- #list(service_id, user_id) ⇒ Object
- #resend(service_id, user_id, message_id) ⇒ Object
Constructor Details
#initialize(config) ⇒ Message
Returns a new instance of Message.
6 7 8 |
# File 'lib/tacklebox/components/message.rb', line 6 def initialize(config) self.api = MessageApi.new(config) end |
Instance Attribute Details
#api ⇒ Object
Returns the value of attribute api.
4 5 6 |
# File 'lib/tacklebox/components/message.rb', line 4 def api @api end |
Instance Method Details
#get(service_id, user_id, message_id) ⇒ Object
18 19 20 |
# File 'lib/tacklebox/components/message.rb', line 18 def get(service_id, user_id, ) self.api.(service_id, user_id, ) end |
#list(service_id, user_id) ⇒ Object
10 11 12 |
# File 'lib/tacklebox/components/message.rb', line 10 def list(service_id, user_id) self.api.(service_id, user_id) end |
#resend(service_id, user_id, message_id) ⇒ Object
14 15 16 |
# File 'lib/tacklebox/components/message.rb', line 14 def resend(service_id, user_id, ) self.api.(service_id, user_id, ) end |