Class: Line::Bot::Client
- Inherits:
-
Object
- Object
- Line::Bot::Client
- Defined in:
- lib/line_liff.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#put(endpoint_path, payload = nil) ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/line_liff.rb', line 33 def put(endpoint_path, payload = nil) raise Line::Bot::API::InvalidCredentialsError, 'Invalidates credentials' unless credentials? request = Line::Bot::Request.new do |config| config.httpclient = httpclient config.endpoint = endpoint config.endpoint_path = endpoint_path config.credentials = credentials config.payload = payload if payload end request.put end |