Sha256: e69d3d2859e4de51b8cb519a65e1e3a1b8f900026c1a9bc2bad727d6fbf518c6
Contents?: true
Size: 452 Bytes
Versions: 1
Compression:
Stored size: 452 Bytes
Contents
module Octopi class Tree < Base attr_accessor :name, :size, :sha, :mode, :mime_type, :type, :user, :repository def self.find(options) ensure_hash(options) user, repo = gather_details(options) route = "/tree/show/#{user}/#{repo}/#{options[:sha]}" trees = Api.api.get(route)["tree"].map do |tree| Tree.new(tree.merge(:user => user, :repository => repo)) end TreeSet.new(trees) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
octopi-0.4.5 | lib/octopi/tree.rb |