Sha256: f92e472d1f767aa840820ebbf07d8f1ef41330fc073fcbf53f536948854ff7e7
Contents?: true
Size: 1.37 KB
Versions: 1
Compression:
Stored size: 1.37 KB
Contents
require 'httparty' require 'json' require 'flapjack-diner/version' require 'flapjack-diner/argument_validator' %w(acceptors checks contacts events maintenance_periods media metrics rejectors states statistics tags relationships).each do |resource| require "flapjack-diner/resources/#{resource}" end require 'flapjack-diner/tools' # NB: clients will need to handle any exceptions caused by, # e.g., network failures or non-parseable JSON data. module Flapjack # Top level module for Flapjack::Diner API consumer. module Diner include HTTParty format :json UUID_RE = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" class << self attr_accessor :logger, :return_keys_as_strings include Flapjack::Diner::Resources::Acceptors include Flapjack::Diner::Resources::Checks include Flapjack::Diner::Resources::Contacts include Flapjack::Diner::Resources::Events include Flapjack::Diner::Resources::MaintenancePeriods include Flapjack::Diner::Resources::Media include Flapjack::Diner::Resources::Metrics include Flapjack::Diner::Resources::Rejectors include Flapjack::Diner::Resources::States include Flapjack::Diner::Resources::Statistics include Flapjack::Diner::Resources::Tags include Flapjack::Diner::Resources::Relationships include Flapjack::Diner::Tools end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flapjack-diner-2.0.0.pre.alpha.3 | lib/flapjack-diner.rb |