Sha256: 464366409f2cac723bb4236bd349fe409bfa4e04b0f6f3ca36134d23efb08220

Contents?: true

Size: 635 Bytes

Versions: 4

Compression:

Stored size: 635 Bytes

Contents

require 'faraday'
require 'faraday_middleware'
require 'logger'

require "wordpress/json/api/version"
require "wordpress/json/api/configuration"
require "wordpress/json/api/client"

module Wordpress
  module Json
    module Api
      class << self
        attr_writer :configuration
  
        def configuration
          @configuration ||= ::Wordpress::Json::Api::Configuration.new
        end
  
        def reset
          @configuration = ::Wordpress::Json::Api::Configuration.new
        end
  
        def configure
          yield(configuration)
        end
      end
  
      class Error < StandardError; end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wordpress-json-api-0.1.3 lib/wordpress/json/api.rb
wordpress-json-api-0.1.2 lib/wordpress/json/api.rb
wordpress-json-api-0.1.1 lib/wordpress/json/api.rb
wordpress-json-api-0.1.0 lib/wordpress/json/api.rb