Sha256: 0024d75a4e7bb659df9a8a8f248b185722ee2ac09f187210a8bb100b3d38ccc6

Contents?: true

Size: 470 Bytes

Versions: 14

Compression:

Stored size: 470 Bytes

Contents

module Conekta
  module Operations
    module Find
      module ClassMethods
        def find(id)
          instance = self.new(id)
          response = Requestor.new.request(:get, instance._url)
          instance.load_from(response)
          instance
        end

        # <b>DEPRECATED:</b> Please use <tt>find</tt> instead.
        alias_method :retrieve, :find
      end
      def self.included(base)
        base.extend(ClassMethods)
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
conekta-2.6.0 lib/conekta/operations/find.rb
conekta-2.5.0 lib/conekta/operations/find.rb
conekta-2.4.2 lib/conekta/operations/find.rb
conekta-2.4.1 lib/conekta/operations/find.rb
conekta-2.4.0 lib/conekta/operations/find.rb
conekta-2.3.0 lib/conekta/operations/find.rb
conekta-2.0.0 lib/conekta/operations/find.rb
conekta-1.1.3 lib/conekta/operations/find.rb
conekta-1.1.2 lib/conekta/operations/find.rb
conekta-1.1.1 lib/conekta/operations/find.rb
conekta-1.1.0 lib/conekta/operations/find.rb
conekta-1.0.0 lib/conekta/operations/find.rb
conekta-0.5.8 lib/conekta/operations/find.rb
conekta-0.5.7 lib/conekta/operations/find.rb