Method: Shenzhen::Plugins::TestFlight::Client#initialize

Defined in:
lib/shenzhen/plugins/testflight.rb

#initialize(api_token, team_token) ⇒ Client

Returns a new instance of Client.



11
12
13
14
15
16
17
18
19
20
# File 'lib/shenzhen/plugins/testflight.rb', line 11

def initialize(api_token, team_token)
  @api_token, @team_token = api_token, team_token
  @connection = Faraday.new(:url => "http://#{HOSTNAME}", :request => { :timeout => 120 }) do |builder|
    builder.request :multipart
    builder.request :json
    builder.response :json, :content_type => /\bjson$/
    builder.use FaradayMiddleware::FollowRedirects
    builder.adapter :net_http
  end
end