Class: Buffer::Api::Info
- Inherits:
-
Object
- Object
- Buffer::Api::Info
- Defined in:
- lib/buffer/api/info.rb
Overview
Returns api instance to get auxilary information about Buffer useful when creating your app.
Instance Method Summary collapse
-
#initialize(client) ⇒ Info
constructor
A new instance of Info.
-
#show(options = {}) ⇒ Object
Returns an object with the current configuration that Buffer is using, including supported services, their icons and the varying limits of character and schedules.
Constructor Details
#initialize(client) ⇒ Info
Returns a new instance of Info.
9 10 11 |
# File 'lib/buffer/api/info.rb', line 9 def initialize(client) @client = client end |
Instance Method Details
#show(options = {}) ⇒ Object
Returns an object with the current configuration that Buffer is using, including supported services, their icons and the varying limits of character and schedules. ‘/info/configuration’ GET
16 17 18 19 20 21 22 |
# File 'lib/buffer/api/info.rb', line 16 def show( = {}) body = .has_key?(:query) ? [:query] : {} response = @client.get "/info/configuration", body, return response end |