Sha256: 91916407ca61bd68ead10f8650c4d0f484a16aa093c519549db7d7b01104a267

Contents?: true

Size: 598 Bytes

Versions: 330

Compression:

Stored size: 598 Bytes

Contents

module Spaceship::TestFlight
  class Base < Spaceship::Base
    def self.client
      @client ||= Client.client_with_authorization_from(Spaceship::Tunes.client)
    end

    ##
    # Have subclasses inherit the client from their superclass
    #
    # Essentially, we are making a class-inheritable-accessor as described here:
    # https://apidock.com/rails/v4.2.7/Class/class_attribute
    def self.inherited(subclass)
      this_class = self
      subclass.define_singleton_method(:client) do
        this_class.client
      end
    end

    def to_json
      raw_data.to_json
    end
  end
end

Version data entries

330 entries across 330 versions & 1 rubygems

Version Path
fastlane-2.74.0.beta.20180106010004 spaceship/lib/spaceship/test_flight/base.rb
fastlane-2.73.0 spaceship/lib/spaceship/test_flight/base.rb
fastlane-2.73.0.beta.20180105010003 spaceship/lib/spaceship/test_flight/base.rb
fastlane-2.73.0.beta.20180104010004 spaceship/lib/spaceship/test_flight/base.rb
fastlane-2.73.0.beta.20180103010003 spaceship/lib/spaceship/test_flight/base.rb
fastlane-2.72.0 spaceship/lib/spaceship/test_flight/base.rb
fastlane-2.72.0.beta.20180102010003 spaceship/lib/spaceship/test_flight/base.rb
fastlane-2.72.0.beta.20180101010003 spaceship/lib/spaceship/test_flight/base.rb
fastlane-2.72.0.beta.20171231010003 spaceship/lib/spaceship/test_flight/base.rb
fastlane-2.71.1 spaceship/lib/spaceship/test_flight/base.rb
fastlane-2.72.0.beta.20171230010003 spaceship/lib/spaceship/test_flight/base.rb
fastlane-2.72.0.beta.20171229010003 spaceship/lib/spaceship/test_flight/base.rb
fastlane-2.72.0.beta.20171228010004 spaceship/lib/spaceship/test_flight/base.rb
fastlane-2.71.0 spaceship/lib/spaceship/test_flight/base.rb
fastlane-2.71.0.beta.20171227010004 spaceship/lib/spaceship/test_flight/base.rb
fastlane-2.71.0.beta.20171226010004 spaceship/lib/spaceship/test_flight/base.rb
fastlane-2.71.0.beta.20171225010003 spaceship/lib/spaceship/test_flight/base.rb
fastlane-2.71.0.beta.20171224010003 spaceship/lib/spaceship/test_flight/base.rb
fastlane-2.71.0.beta.20171223010003 spaceship/lib/spaceship/test_flight/base.rb
fastlane-2.71.0.beta.20171222010003 spaceship/lib/spaceship/test_flight/base.rb