Sha256: c870d74fe47af53c15751239aa33c79f1a2b6a2e490531080e5d37156588787a
Contents?: true
Size: 719 Bytes
Versions: 78
Compression:
Stored size: 719 Bytes
Contents
require_relative '../base' require_relative '../tunes/tunes_client' module Spaceship module 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 end
Version data entries
78 entries across 78 versions & 1 rubygems