Class: Datadog::CI::Ext::Environment::Providers::LocalGit::GitUser
- Inherits:
-
Object
- Object
- Datadog::CI::Ext::Environment::Providers::LocalGit::GitUser
- Defined in:
- lib/datadog/ci/ext/environment/providers/local_git.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Instance Method Summary collapse
- #date ⇒ Object
-
#initialize(name, email, timestamp) ⇒ GitUser
constructor
A new instance of GitUser.
Constructor Details
#initialize(name, email, timestamp) ⇒ GitUser
Returns a new instance of GitUser.
133 134 135 136 137 |
# File 'lib/datadog/ci/ext/environment/providers/local_git.rb', line 133 def initialize(name, email, ) @name = name @email = email @timestamp = end |
Instance Attribute Details
#email ⇒ Object (readonly)
Returns the value of attribute email.
131 132 133 |
# File 'lib/datadog/ci/ext/environment/providers/local_git.rb', line 131 def email @email end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
131 132 133 |
# File 'lib/datadog/ci/ext/environment/providers/local_git.rb', line 131 def name @name end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
131 132 133 |
# File 'lib/datadog/ci/ext/environment/providers/local_git.rb', line 131 def @timestamp end |
Instance Method Details
#date ⇒ Object
139 140 141 142 143 |
# File 'lib/datadog/ci/ext/environment/providers/local_git.rb', line 139 def date return nil if .nil? Time.at(.to_i).utc.to_datetime.iso8601 end |