class Bitly::API::OAuthApp

Public Class Methods

attributes() click to toggle source
# File lib/bitly/api/oauth_app.rb, line 9
def self.attributes
  [:name, :description, :link, :client_id]
end
fetch(client:, client_id:) click to toggle source
# File lib/bitly/api/oauth_app.rb, line 14
def self.fetch(client:, client_id:)
  response = client.request(path: "/apps/#{client_id}")
  new(data: response.body, client: client, response: response)
end
new(data:, client:, response: nil) click to toggle source
# File lib/bitly/api/oauth_app.rb, line 19
def initialize(data:, client:, response: nil)
  assign_attributes(data)
  @client = client
  @response = response
end