Sha256: 28458116899a7116d8d28ab7a2d1bdc95c9483b1e4474a271ffdcd0b9580b3eb

Contents?: true

Size: 310 Bytes

Versions: 5

Compression:

Stored size: 310 Bytes

Contents

module Dribbble
  module Utils
    module Findable
      module ClassMethods
        def find(token, id)
          @token = token
          new token, html_get("/#{pluralized_class_name}/#{id}")
        end
      end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dribbble-1.2.0 lib/dribbble/utils/findable.rb
dribbble-1.1.0 lib/dribbble/utils/findable.rb
dribbble-1.0.4 lib/dribbble/utils/findable.rb
dribbble-1.0.2 lib/dribbble/utils/findable.rb
dribbble-1.0.1 lib/dribbble/utils/findable.rb