Sha256: f42525e7d8f22b871ec2a4a07c65edee132a4407da44c2a6eadc44c0ceb45186

Contents?: true

Size: 458 Bytes

Versions: 8

Compression:

Stored size: 458 Bytes

Contents

require "digicert/actions/base"

module Digicert
  module Actions
    module Fetch
      extend Digicert::Actions::Base

      def fetch
        Digicert::Request.new(
          :get, [resource_path, resource_id].join("/"), params: query_params
        ).parse
      end

      module ClassMethods
        def fetch(resource_id, filter_params = {})
          new(resource_id: resource_id, params: filter_params).fetch
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
digicert-1.0.0 lib/digicert/actions/fetch.rb
digicert-0.5.0 lib/digicert/actions/fetch.rb
digicert-0.4.1 lib/digicert/actions/fetch.rb
digicert-0.4.0 lib/digicert/actions/fetch.rb
digicert-0.3.1 lib/digicert/actions/fetch.rb
digicert-0.3.0 lib/digicert/actions/fetch.rb
digicert-0.2.0 lib/digicert/actions/fetch.rb
digicert-0.1.2 lib/digicert/actions/fetch.rb