Module: Vericred

Defined in:
lib/vericred.rb,
lib/vericred/errors.rb,
lib/vericred/version.rb,
lib/vericred/resources.rb,
lib/vericred/connection.rb,
lib/vericred/api_resource.rb,
lib/vericred/future_proxy.rb,
lib/vericred/api_resource/relationships/base.rb,
lib/vericred/api_resource/relationships/has_many.rb,
lib/vericred/api_resource/relationships/belongs_to.rb

Defined Under Namespace

Modules: Relationships Classes: ApiResource, Connection, County, Error, FutureProxy, Plan, Provider, State, ZipCode, ZipCounty

Constant Summary collapse

TotalNotSupportedError =
Class.new(Error) do
  def initialize(klass)
    @klass = klass
  end

  def errors
    OpenStruct.new(
      not_supported: ["#{klass} does not support total"]
    )
  end

  def status
    422
  end
end
UnauthenticatedError =
Class.new(Error)
UnauthorizedError =
Class.new(Error)
UnprocessableEntityError =
Class.new(Error)
UnknownError =
Class.new(Error)
VERSION =
"0.2.0"

Class Method Summary collapse

Class Method Details

.configObject



19
20
21
# File 'lib/vericred.rb', line 19

def self.config
  @config ||= OpenStruct.new
end

.configure {|self.config| ... } ⇒ Object

Yields:



23
24
25
# File 'lib/vericred.rb', line 23

def self.configure(&block)
  yield(self.config)
end