Sha256: 9ce53209ed34979e54a8ed5d3f60eeb4dcb014703d2f096a50144364a242731a

Contents?: true

Size: 727 Bytes

Versions: 2

Compression:

Stored size: 727 Bytes

Contents

$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

require 'singleton'
require 'nokogiri'
require 'httparty'

module UEncode
  class << self
    attr_accessor :customer_key

    def configure
      yield self
    end
  end

  module AttrSetting
    def set_attributes(options)
      self.class.const_get("ATTRIBUTES").each { |attr| instance_variable_set(:"@#{attr}", options[attr]) }
    end

    def initialize(options)
      set_attributes options
    end

    def self.included(klass)
      attr = klass.const_get "ATTRIBUTES"
      klass.send(:attr_reader, *attr)
    end
  end
end

require "uencode/elements"
require "uencode/request"
require "uencode/response"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
uencode-0.0.2 lib/uencode.rb
uencode-0.0.1 lib/uencode.rb