Sha256: 91b7f7ed7ff4df3f21853eec13a7d9944827c07b98b5b83ecae48548412f7dbd
Contents?: true
Size: 690 Bytes
Versions: 1
Compression:
Stored size: 690 Bytes
Contents
module Typekit @defaults = { version: 1, format: :json } @schema = Proc.new do |version, format| address "https://typekit.com/api/v#{version}/#{format}" resources :kits do resources :families, only: [:show, :update, :delete] show :published, on: :member update :publish, on: :member end resources :families, only: :show do show ':variation', on: :member end resources :libraries, only: [:index, :show] end @dictionary = { :update => :post } # not PATCH @headers = Proc.new do |token| { 'X-Typekit-Token' => token } end singleton_class.class_eval do attr_reader :defaults, :schema, :dictionary, :headers end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
typekit-client-0.0.6 | lib/typekit/core.rb |