Sha256: 3d64cd92c2a92c0ff721c15cfe472cf7f3b61e2c7027dbc73d50dee0ccf3e0da

Contents?: true

Size: 576 Bytes

Versions: 2

Compression:

Stored size: 576 Bytes

Contents

require 'uri'

module RETS4R #:nodoc:
  class Client #:nodoc:
    class Links < Hash
      attr_accessor :logger
      def self.from_login_url(login_url)
        links = self.new
        links['Login'] = URI.parse(login_url)
        links
      end
      def login
        self['Login']
      end
      def logout
        self['Logout']
      end
      def metadata
        self['GetMetadata']
      end
      def objects
        self['GetObject']
      end
      def search
        self['Search']
      end
      def action
        self['Action']
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
rets4r-1.1.18 lib/rets4r/client/links.rb
jschairb-rets4r-1.1.18 lib/rets4r/client/links.rb