Sha256: 94ed9dcef8056e79c54ebb0deb08b7563ac67c91a33216fc349e3db8d3f7f8b9

Contents?: true

Size: 549 Bytes

Versions: 5

Compression:

Stored size: 549 Bytes

Contents

require 'lessonly/version'

module Lessonly
  module Defaults
    def api_key
      Lessonly.configuration.api_key
    end

    def api_endpoint
      Lessonly.configuration.root_url
    end

    def domain
      Lessonly.configuration.domain
    end

    def user_agent
      "Lessonly Ruby Gem #{Lessonly::VERSION} made by Aptible"
    end

    def media_type
      'application/json'
    end

    def connection_options
      {
        headers: {
          accept: media_type,
          user_agent: user_agent
        }
      }
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lessonly-ruby-0.1.3 lib/lessonly/defaults.rb
lessonly-ruby-0.1.2 lib/lessonly/defaults.rb
lessonly-ruby-0.1.1 lib/lessonly/defaults.rb
lessonly-ruby-0.1.0 lib/lessonly/defaults.rb
lessonly-ruby-0.0.1 lib/lessonly/defaults.rb