Sha256: 94247d1d1477c4a0f69030404a05fa65a699fee0ba1de5f6f72cfd28b0aea6c6

Contents?: true

Size: 1.46 KB

Versions: 1

Compression:

Stored size: 1.46 KB

Contents

require 'faraday'
require 'faraday/follow_redirects'
require 'faraday-http-cache'
require 'json'

require 'marketo_api/version'
require 'marketo_api/config'

module MarketoApi
  autoload :AbstractClient, 'marketo_api/abstract_client'
  autoload :Middleware,     'marketo_api/middleware'
  autoload :Client,         'marketo_api/client'

  module Concerns
    autoload :Authentication, 'marketo_api/concerns/authentication'
    autoload :Connection,     'marketo_api/concerns/connection'
    autoload :Caching,        'marketo_api/concerns/caching'
    autoload :Verbs,          'marketo_api/concerns/verbs'
    autoload :Base,           'marketo_api/concerns/base'
  end

  module API
    autoload :Base,           'marketo_api/api/base'
    autoload :Leads,          'marketo_api/api/leads'
    autoload :Sales,          'marketo_api/api/sales'
    autoload :Stats,          'marketo_api/api/stats'
    autoload :Activities,     'marketo_api/api/activities'
    autoload :Campaigns,      'marketo_api/api/campaigns'
    autoload :Workspaces,     'marketo_api/api/workspaces'
  end

  Error               = Class.new(StandardError)
  ServerError         = Class.new(Error)
  AuthenticationError = Class.new(Error)
  UnauthorizedError   = Class.new(Error)
  APIVersionError     = Class.new(Error)

  # Add .tap method in Ruby 1.8
  module CoreExtensions
    def tap
      yield self
      self
    end
  end

  Object.send :include, MarketoApi::CoreExtensions unless Object.respond_to? :tap
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
marketo_api-0.3.0.pre.alpha lib/marketo_api.rb