Class: Bake::Modernize::License::Authorship::Modification
- Inherits:
-
Struct
- Object
- Struct
- Bake::Modernize::License::Authorship::Modification
- Defined in:
- lib/bake/modernize/license.rb
Overview
Represents a modification to a file.
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#id ⇒ Object
Returns the value of attribute id.
-
#path ⇒ Object
Returns the value of attribute path.
-
#time ⇒ Object
Returns the value of attribute time.
Instance Method Summary collapse
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author
175 176 177 |
# File 'lib/bake/modernize/license.rb', line 175 def @author end |
#id ⇒ Object
Returns the value of attribute id
175 176 177 |
# File 'lib/bake/modernize/license.rb', line 175 def id @id end |
#path ⇒ Object
Returns the value of attribute path
175 176 177 |
# File 'lib/bake/modernize/license.rb', line 175 def path @path end |
#time ⇒ Object
Returns the value of attribute time
175 176 177 |
# File 'lib/bake/modernize/license.rb', line 175 def time @time end |
Instance Method Details
#full_name ⇒ Object
176 177 178 |
# File 'lib/bake/modernize/license.rb', line 176 def full_name [:name] end |
#key ⇒ Object
180 181 182 |
# File 'lib/bake/modernize/license.rb', line 180 def key self.id || "#{self.[:email]}:#{self.time.iso8601}" end |
#to_h ⇒ Object
184 185 186 187 188 189 190 191 |
# File 'lib/bake/modernize/license.rb', line 184 def to_h { id: id, time: time, path: path, author: , } end |