Sha256: e815cd5c953ac568e65d54767218abe3020214e28b299baf2dcc34af5a2ba9ac

Contents?: true

Size: 396 Bytes

Versions: 1

Compression:

Stored size: 396 Bytes

Contents

# itexmo module
module Itexmo
  # cofiguration class
  class Configuration
    attr_writer :api_code, :priority

    def initialize
      @api_code = nil
      @priority = 'NORMAL'
    end

    def api_code
      raise Errors::Configuration, 'Itexmo api_code is missing! See documentation for configuration settings.' unless @api_code
      @api_code
    end

    attr_reader :priority
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
itexmo-0.0.1 lib/itexmo/configuration.rb