Class: GitReviewer::FileOwner

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) ⇒ FileOwner

Returns a new instance of FileOwner.



64
65
66
67
# File 'lib/gitreviewer/config/configuration.rb', line 64

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

Instance Attribute Details

#ownerObject

Returns the value of attribute owner.



62
63
64
# File 'lib/gitreviewer/config/configuration.rb', line 62

def owner
  @owner
end

#pathObject

Returns the value of attribute path.



61
62
63
# File 'lib/gitreviewer/config/configuration.rb', line 61

def path
  @path
end

Instance Method Details

#to_hashObject



69
70
71
72
73
74
# File 'lib/gitreviewer/config/configuration.rb', line 69

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