Module: Pushbullet::Permanents
- Included in:
- Client
- Defined in:
- lib/pushbullet/permanents.rb
Instance Method Summary collapse
- #permanent_conversation(device_identity:, thread_id:, params: {}, cursor: nil) ⇒ Object
- #permanents(device_identity:, params: {}, cursor: nil) ⇒ Object
Instance Method Details
#permanent_conversation(device_identity:, thread_id:, params: {}, cursor: nil) ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/pushbullet/permanents.rb', line 15 def permanent_conversation(device_identity:, thread_id:, params: {}, cursor: nil) @disable_limit = true params = process_cursor(cursor, params: params) path = "permanents/#{device_identity}_thread_#{thread_id}" response = (http_method: :get, path: path, params: params) @disable_limit = false response end |
#permanents(device_identity:, params: {}, cursor: nil) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/pushbullet/permanents.rb', line 4 def permanents(device_identity:, params: {}, cursor: nil) @disable_limit = true params = process_cursor(cursor, params: params) path = "permanents/#{device_identity}_threads" response = (http_method: :get, path: path, params: params) @disable_limit = false response end |