module Telegraph

Attributes

client[RW]

Public Class Methods

create_account(short_name:, author_name:, author_url:) click to toggle source
# File lib/telegraph_rb.rb, line 22
def create_account(short_name:, author_name:, author_url:)
  account = Account.create(
    short_name: short_name,
    author_name: author_name,
    author_url: author_url
  )
  @client = Client.new(account.access_token)
  account
end
setup(token) click to toggle source
# File lib/telegraph_rb.rb, line 18
def setup(token)
  @client = Client.new(token)
end