Sha256: 530f8e4e0828469b79b192be30cf13bf631c610c09a04c6697c24e456510eb38

Contents?: true

Size: 407 Bytes

Versions: 26

Compression:

Stored size: 407 Bytes

Contents

module Octopi
  class FileObject < Base
    attr_accessor :name, :sha, :mode, :type
    
    include Resource
    set_resource_name "tree"
    resource_path "/tree/show/:id"

    def self.find(options={})
      ensure_hash(options)
      user, repo, branch, sha = gather_details(options)
      self.validate_args(sha => :sha, user => :user, repo => :repo)
      super [user, repo, sha] 
    end  
  end
end

Version data entries

26 entries across 26 versions & 4 rubygems

Version Path
octopi-0.4.5 lib/octopi/file_object.rb
octopi-0.4.4 lib/octopi/file_object.rb
octopi-0.4.3 lib/octopi/file_object.rb
octopi-0.4.2 lib/octopi/file_object.rb
octopi-0.4.1 lib/octopi/file_object.rb
octopi-0.4.0 lib/octopi/file_object.rb
octopi-0.3.0 lib/octopi/file_object.rb
dcuddeback-octopi-0.2.12 lib/octopi/file_object.rb
dcuddeback-octopi-0.2.11 lib/octopi/file_object.rb
dcuddeback-octopi-0.2.9 lib/octopi/file_object.rb
dcuddeback-octopi-0.2.8 lib/octopi/file_object.rb
devver-octopi-0.2.14 lib/octopi/file_object.rb
tpitale-octopi-0.3.0 lib/octopi/file_object.rb
devver-octopi-0.2.13 lib/octopi/file_object.rb
devver-octopi-0.2.12 lib/octopi/file_object.rb
octopi-0.2.8 lib/octopi/file_object.rb
devver-octopi-0.2.11 lib/octopi/file_object.rb
devver-octopi-0.2.10 lib/octopi/file_object.rb
devver-octopi-0.2.9 lib/octopi/file_object.rb
devver-octopi-0.2.8 lib/octopi/file_object.rb