Sha256: dc467cc0e4da02f77e366fa74e4735c40d4a24f4b31368e9264b4f4482d1e09b

Contents?: true

Size: 647 Bytes

Versions: 1

Compression:

Stored size: 647 Bytes

Contents

module SphereEngine
  class Client
    attr_accessor :access_token_compilers, :access_token_problems

    # Initializes a new Client object
    #
    # @param options [Hash]
    # @return [SphereEngine::Client]
    def initialize(options = {})
      options.each do |key, value|
        instance_variable_set("@#{key}", value)
      end
      yield(self) if block_given?
    end

    # @return [Hash]
    def credentials
      {
        access_token_compilers: access_token_compilers,
        access_token_problems: access_token_problems
      }
    end

    # @return [Boolean]
    def credentials?
      credentials.values.all?
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sphere_engine-1.0.0.pre lib/sphere_engine/client.rb