Sha256: ecede0387986a8a95a73a3a4d0f59f964649cb60ac54b03da76e9007231e8c37

Contents?: true

Size: 391 Bytes

Versions: 1

Compression:

Stored size: 391 Bytes

Contents

module Typekit
  module Element
    module Query
      def self.included(base)
        base.extend(ClassMethods)
      end

      module ClassMethods
        def all
          process(:index)
        end

        def find!(id)
          process(:show, id)
        end

        def find(id)
          find!(id)
        rescue ServerError
          nil
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
typekit-client-0.0.6 lib/typekit/element/query.rb