module DiscountNetwork
Public Class Methods
configuration()
click to toggle source
# File lib/discountnetwork/configuration.rb, line 14 def self.configuration @configuration ||= Configuration.new end
configure() { |configuration| ... }
click to toggle source
# File lib/discountnetwork/configuration.rb, line 10 def self.configure yield configuration end
get_resource(end_point, attributes = {})
click to toggle source
# File lib/discountnetwork/client.rb, line 43 def self.get_resource(end_point, attributes = {}) Client.new(:get, end_point, attributes).execute end
post_resource(end_point, attributes)
click to toggle source
# File lib/discountnetwork/client.rb, line 47 def self.post_resource(end_point, attributes) Client.new(:post, end_point, attributes).execute end
put_resource(end_point, attributes)
click to toggle source
# File lib/discountnetwork/client.rb, line 51 def self.put_resource(end_point, attributes) Client.new(:put, end_point, attributes).execute end