Class: Datadog::CI::Git::User
- Inherits:
-
Object
- Object
- Datadog::CI::Git::User
- Defined in:
- lib/datadog/ci/git/user.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) ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize(name, email, timestamp) ⇒ User
Returns a new instance of User.
9 10 11 12 13 |
# File 'lib/datadog/ci/git/user.rb', line 9 def initialize(name, email, ) @name = name @email = email @timestamp = end |
Instance Attribute Details
#email ⇒ Object (readonly)
Returns the value of attribute email.
7 8 9 |
# File 'lib/datadog/ci/git/user.rb', line 7 def email @email end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/datadog/ci/git/user.rb', line 7 def name @name end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
7 8 9 |
# File 'lib/datadog/ci/git/user.rb', line 7 def @timestamp end |
Instance Method Details
#date ⇒ Object
15 16 17 18 19 |
# File 'lib/datadog/ci/git/user.rb', line 15 def date return nil if .nil? Time.at(.to_i).utc.to_datetime.iso8601 end |