Class: GitReviewer::FileOwner
- Inherits:
-
Object
- Object
- GitReviewer::FileOwner
- Defined in:
- lib/gitreviewer/config/configuration.rb
Instance Attribute Summary collapse
-
#owner ⇒ Object
Returns the value of attribute owner.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path, owner) ⇒ FileOwner
constructor
A new instance of FileOwner.
- #to_hash ⇒ Object
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
#owner ⇒ Object
Returns the value of attribute owner.
62 63 64 |
# File 'lib/gitreviewer/config/configuration.rb', line 62 def owner @owner end |
#path ⇒ Object
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_hash ⇒ Object
69 70 71 72 73 74 |
# File 'lib/gitreviewer/config/configuration.rb', line 69 def to_hash { path: @path, owner: @owner } end |