Sha256: 4488239994111dc99dc73170a5f3fb2f5fa72c4037491cbff83568f795194658

Contents?: true

Size: 303 Bytes

Versions: 2

Compression:

Stored size: 303 Bytes

Contents

module Fulfillment
  module Resources
    module Types
      extend self

      def find_all
        response = Request.new("types").get
        response.body
      end

      def find(type_name)
        response = Request.new("types/#{type_name}").get
        response.body
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fulfillment-api-1.1.9 lib/fulfillment/resources/types.rb
fulfillment-api-1.1.7 lib/fulfillment/resources/types.rb