Sha256: 989b46de3cc5f1c765b7454416d8ba293fac0415c439fe9e34ab5620bbd3c7fe

Contents?: true

Size: 295 Bytes

Versions: 7

Compression:

Stored size: 295 Bytes

Contents

module Mailstro
  class Configuration
    attr_accessor :api_endpoint
    attr_accessor :api_key

    def initialize
      @api_endpoint = 'https://api.mailstroapp.com/v1'
    end

    def validate!
      raise Error::ConfigurationError, "api_key not provided" if api_key.nil?
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mailstro-0.0.10 lib/mailstro/configuration.rb
mailstro-0.0.9 lib/mailstro/configuration.rb
mailstro-0.0.8 lib/mailstro/configuration.rb
mailstro-0.0.7 lib/mailstro/configuration.rb
mailstro-0.0.6 lib/mailstro/configuration.rb
mailstro-0.0.5 lib/mailstro/configuration.rb
mailstro-0.0.4 lib/mailstro/configuration.rb