class Tfl::Client

Attributes

app_id[RW]
app_key[RW]

Public Class Methods

new(options = {}) { |self| ... } click to toggle source
# File lib/tfl/client.rb, line 5
def initialize(options = {})
  options.each do |key,value|
    instance_variable_set("@#{key}", value)
  end

  yield(self) if block_given?
end

Public Instance Methods

credentials() click to toggle source
# File lib/tfl/client.rb, line 13
def credentials
  {
    app_id: @app_id,
    app_key: @app_key
  }
end