Sha256: df84553f7551ffda8a82512a4821fa44bd4521175d1187a75e822740030b8c7c

Contents?: true

Size: 353 Bytes

Versions: 7

Compression:

Stored size: 353 Bytes

Contents

module Paysio
  module Actions
    module Find
      module ClassMethods
        def find(id)
          response = Paysio::Client.request(:get, "#{path}/#{id}")
          Resource.build_from(response)
        end
        alias_method :retrieve, :find
      end

      def self.included(base)
        base.extend(ClassMethods)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
paysio-1.0.10 lib/paysio/actions/find.rb
paysio-1.0.9 lib/paysio/actions/find.rb
paysio-1.0.8 lib/paysio/actions/find.rb
paysio-1.0.7 lib/paysio/actions/find.rb
paysio-1.0.6 lib/paysio/actions/find.rb
paysio-1.0.5 lib/paysio/actions/find.rb
paysio-1.0.4 lib/paysio/actions/find.rb