module Prefinery
Ruby lib for working with the Prefinery
API’s XML interface.
You should have something like this in config/initializers/prefinery.rb.
Prefinery.configure do |config| config.subdomain = 'compulsivo' config.api_key = 8cc4aae2a2fc0e1278a2079ea95b219e26f6beba end
Read the docs at: www.prefinery.com/api
Attributes
api_key[RW]
host[RW]
host_format[RW]
subdomain[RW]
Public Class Methods
configure() { |self| ... }
click to toggle source
# File lib/prefinery.rb, line 24 def configure yield self resources.each do |klass| klass.site = klass.site_format % (host_format % [host]) klass.user = api_key klass.password = "X" end end
resources()
click to toggle source
# File lib/prefinery.rb, line 45 def resources @resources ||= [] end