class DesignerNews::Client

Public Class Methods

new(options={}) click to toggle source
# File lib/designer_news/client.rb, line 33
def initialize(options={})
  DesignerNews::Configurable.keys.each do |key|
    instance_variable_set(:"@#{key}", options[key] || DesignerNews.instance_variable_get(:"@#{key}"))
  end
end

Public Instance Methods

delete(url, options = {}) click to toggle source
# File lib/designer_news/client.rb, line 51
def delete(url, options = {})
  request :delete, url, options
end
get(url, options = {}) click to toggle source
# File lib/designer_news/client.rb, line 39
def get(url, options = {})
  request :get, url, options
end
post(url, options = {}) click to toggle source
# File lib/designer_news/client.rb, line 43
def post(url, options = {})
  request :post, url, options
end
put(url, options = {}) click to toggle source
# File lib/designer_news/client.rb, line 47
def put(url, options = {})
  request :put, url, options
end