Sha256: 51c378b175fb67639d16769abb912ac8a4ce9faa4e35126da4a63b3c80f44edc

Contents?: true

Size: 680 Bytes

Versions: 13

Compression:

Stored size: 680 Bytes

Contents

# encoding: UTF-8

require_relative '../exceptions/command_failed'
require_relative '../models/domain'

module GoodData
  module Command
    # Low level access to GoodData API
    class Domain
      attr_reader :name

      class << self
        def add_user(domain, login, password, opts = { :client => GoodData.connection })
          data = {
            :domain => domain,
            :login => login,
            :password => password
          }
          GoodData::Domain.add_user(data.merge(opts))
        end

        def list_users(domain, opts = { :client => GoodData.connection })
          GoodData::Domain.users(domain, opts)
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
gooddata-0.6.20 lib/gooddata/commands/domain.rb
gooddata-0.6.19 lib/gooddata/commands/domain.rb
gooddata-0.6.18 lib/gooddata/commands/domain.rb
gooddata-0.6.17 lib/gooddata/commands/domain.rb
gooddata-0.6.16 lib/gooddata/commands/domain.rb
gooddata-0.6.15 lib/gooddata/commands/domain.rb
gooddata-0.6.14 lib/gooddata/commands/domain.rb
gooddata-0.6.13 lib/gooddata/commands/domain.rb
gooddata-0.6.12 lib/gooddata/commands/domain.rb
gooddata-0.6.11 lib/gooddata/commands/domain.rb
gooddata-0.6.10 lib/gooddata/commands/domain.rb
gooddata-0.6.9 lib/gooddata/commands/domain.rb
gooddata-0.6.8 lib/gooddata/commands/domain.rb