Sha256: 329a5a5b72958d54c5797144ca3fa5c22548b1e75a9b4ef7c58a99822448495e

Contents?: true

Size: 406 Bytes

Versions: 1

Compression:

Stored size: 406 Bytes

Contents

require 'bremen/track'
require 'bremen/request'

module Bremen
  class Base
    include Track
    extend Request

    class << self
      attr_accessor :default_options

      def find options = {}
        convert_from_response(get(search_url(options)))
      end

      #abstract methods
      def search_url options = {}; end
      private
      def convert_from_response response; end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bremen-0.0.1 lib/bremen/base.rb