Class: GitReviewer::FolderOwner

Inherits:
Object
  • Object
show all
Defined in:
lib/gitreviewer/config/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, owner) ⇒ FolderOwner

Returns a new instance of FolderOwner.



81
82
83
84
# File 'lib/gitreviewer/config/configuration.rb', line 81

def initialize(path, owner)
  @path = path
  @owner = owner
end

Instance Attribute Details

#ownerObject

Returns the value of attribute owner.



79
80
81
# File 'lib/gitreviewer/config/configuration.rb', line 79

def owner
  @owner
end

#pathObject

Returns the value of attribute path.



78
79
80
# File 'lib/gitreviewer/config/configuration.rb', line 78

def path
  @path
end

Instance Method Details

#to_hashObject



86
87
88
89
90
91
# File 'lib/gitreviewer/config/configuration.rb', line 86

def to_hash
  {
    path: @path,
    owner: @owner
  }
end