module TransparentData::Actions

Public Instance Methods

add(source, method, parameters) click to toggle source
# File lib/transparent_data/actions.rb, line 12
def add(source, method, parameters)
  TransparentData::Actions::Add.new(client, source, method, parameters).call
end
result(ident) click to toggle source
# File lib/transparent_data/actions.rb, line 16
def result(ident)
  TransparentData::Actions::Result.new(client, ident).call
end

Private Instance Methods

client() click to toggle source
# File lib/transparent_data/actions.rb, line 22
def client
  @client ||= Faraday.new(TransparentData.url) do |conn|
    conn.basic_auth(TransparentData.user, TransparentData.password)
  end
end