Sha256: 6d4f0fb9281978c83b7477c5aa6a901c378ae00f3951785077738694eb7460b5

Contents?: true

Size: 415 Bytes

Versions: 1

Compression:

Stored size: 415 Bytes

Contents

# -*- encoding: utf-8 -*-

module PMP
  class Client

    include Configuration

    def initialize(options={}, &block)
      apply_configuration(options)
      yield(self) if block_given?
    end

    def token(opts={})
      @token ||= PMP::Token.new(options.merge(opts)).get_token
    end

    def root(opts={}, &block)
      @root ||= PMP::CollectionDocument.new(options.merge(opts), &block)
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pmp-0.1.2 lib/pmp/client.rb