Sha256: 7e760f0cc544a571478457a1639c840f19a832a2b80b3388ffd62a02cf0db5a6

Contents?: true

Size: 557 Bytes

Versions: 3

Compression:

Stored size: 557 Bytes

Contents

module Direct
  module API
    module V5
      class Settings
        attr_accessor :host
        attr_accessor :language
        attr_accessor :auth_token
        attr_accessor :client_login

        def initialize(settings = {})
          @host = settings[:host] || DefaultSettings.host
          @language = settings[:language] || DefaultSettings.language
          @auth_token = settings[:auth_token] || DefaultSettings.auth_token
          @client_login = settings[:client_login] || DefaultSettings.client_login
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
direct-api-v5-0.1.2 lib/direct/api/v5/settings.rb
direct-api-v5-0.1.1 lib/direct/api/v5/settings.rb
direct-api-v5-0.1.0 lib/direct/api/v5/settings.rb