Sha256: 22708632b3dcc14aa06d4ad748de05b4592c05f171345c59b4c88f74cbfd6544
Contents?: true
Size: 567 Bytes
Versions: 4
Compression:
Stored size: 567 Bytes
Contents
require 'desk/connection' require 'desk/request' require 'desk/authentication' module Desk # @private class API # @private attr_accessor *Configuration::VALID_OPTIONS_KEYS # Creates a new API def initialize(options={}) options = Desk.options.merge(options) Configuration::VALID_OPTIONS_KEYS.each do |key| send("#{key}=", options[key]) end end def endpoint "https://#{self.subdomain}.desk.com/api/#{self.version}/" end include Connection include Request include Authentication end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
desk-0.3.3 | lib/desk/api.rb |
desk-0.3.2 | lib/desk/api.rb |
desk-0.3.1 | lib/desk/api.rb |
desk-0.3.0 | lib/desk/api.rb |