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
166 167 168 |
# File 'lib/bake/modernize/license.rb', line 166 def @author end |
#id ⇒ Object
Returns the value of attribute id
166 167 168 |
# File 'lib/bake/modernize/license.rb', line 166 def id @id end |
#path ⇒ Object
Returns the value of attribute path
166 167 168 |
# File 'lib/bake/modernize/license.rb', line 166 def path @path end |
#time ⇒ Object
Returns the value of attribute time
166 167 168 |
# File 'lib/bake/modernize/license.rb', line 166 def time @time end |
Instance Method Details
#full_name ⇒ Object
167 168 169 |
# File 'lib/bake/modernize/license.rb', line 167 def full_name [:name] end |
#key ⇒ Object
171 172 173 |
# File 'lib/bake/modernize/license.rb', line 171 def key self.id || "#{self.[:email]}:#{self.time.iso8601}" end |
#to_h ⇒ Object
175 176 177 178 179 180 181 182 |
# File 'lib/bake/modernize/license.rb', line 175 def to_h { id: id, time: time, path: path, author: , } end |