Class: Octopi::TreeSet

Inherits:
Array
  • Object
show all
Includes:
Octopi
Defined in:
lib/octopi/tree_set.rb

Constant Summary

Constants included from Octopi

VERSION

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Octopi

#authenticated, #authenticated_with

Constructor Details

#initialize(array) ⇒ TreeSet

Returns a new instance of TreeSet.



6
7
8
9
10
# File 'lib/octopi/tree_set.rb', line 6

def initialize(array)
  self.user = array.first.user
  self.repository = array.first.repository
  super(array)
end

Instance Attribute Details

#repositoryObject

Returns the value of attribute repository.



4
5
6
# File 'lib/octopi/tree_set.rb', line 4

def repository
  @repository
end

#userObject

Returns the value of attribute user.



4
5
6
# File 'lib/octopi/tree_set.rb', line 4

def user
  @user
end