module Mashery
Constants
- VERSION
Public Class Methods
activity(activity_type, service_id, options)
click to toggle source
# File lib/mashery.rb, line 52 def self.activity(activity_type, service_id, options) Mashery.rest.call(activity_type, service_id, options) end
config()
click to toggle source
# File lib/mashery.rb, line 31 def self.config raise Mashery::ConfigMissing.new unless @@config.present? @@config end
config=(other)
click to toggle source
# File lib/mashery.rb, line 36 def self.config=(other) @@config = other end
load_config!(yaml_file)
click to toggle source
# File lib/mashery.rb, line 40 def self.load_config!(yaml_file) Mashery.config = Mashery::Config.new(yaml_file) end
load_rails_config!()
click to toggle source
# File lib/mashery/rails.rb, line 2 def self.load_rails_config! if File.exists? rails_config load_config! rails_config else # raise MissingConfig.new end end
rails_config()
click to toggle source
# File lib/mashery/rails.rb, line 10 def self.rails_config Rails.root.join("config", "mashery.yml") end
rest()
click to toggle source
# File lib/mashery.rb, line 48 def self.rest Mashery::RestClient.new end
rpc()
click to toggle source
# File lib/mashery.rb, line 44 def self.rpc Mashery::RpcClient.new end