Sha256: 7252a1cbb4041daf8beb4f2a31a6e0d8758ca94215dc4a61130f5ed1e1791f25

Contents?: true

Size: 424 Bytes

Versions: 2

Compression:

Stored size: 424 Bytes

Contents

require 'forwardable'

module Adjust
  module Core
    class Configuration
      attr_accessor :app_token, :environment

      def environment
        @environment ||= :sandbox
      end

      def app_token
        fail MissingAppTokenError unless @app_token

        @app_token
      end

      def to_hash
        {
          environment: environment,
          app_token: app_token
        }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
adjust-0.0.2 lib/adjust/core/configuration.rb
adjust-0.0.1 lib/adjust/core/configuration.rb