Sha256: fd8e85ee8f387fca9ec48088707e3d224af048734ebba72ba2f60f8be7026071

Contents?: true

Size: 682 Bytes

Versions: 4

Compression:

Stored size: 682 Bytes

Contents

require 'httparty'
require 'json'

module Gerry
  class Client
    include HTTParty
    headers 'Accept' => 'application/json'

    require_relative 'client/access'
    require_relative 'client/accounts'
    require_relative 'client/changes'
    require_relative 'client/groups'
    require_relative 'client/projects'
    require_relative 'client/request'

    include Access
    include Accounts
    include Changes
    include Groups
    include Projects
    include Request

    def initialize(url, username = nil, password = nil)
      self.class.base_uri(url)

      if username && password
        @username = username
        @password = password
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gerry-0.1.2 lib/gerry/client.rb
gerry-0.1.1 lib/gerry/client.rb
gerry-0.1.0 lib/gerry/client.rb
gerry-0.0.4 lib/gerry/client.rb