Class: Git::Copilot::Configuration::User
- Inherits:
-
Struct
- Object
- Struct
- Git::Copilot::Configuration::User
- Defined in:
- lib/git/copilot/configuration.rb,
lib/git/copilot/configuration.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#name ⇒ Object
Returns the value of attribute name.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email
4 5 6 |
# File 'lib/git/copilot/configuration.rb', line 4 def email @email end |
#name ⇒ Object
Returns the value of attribute name
4 5 6 |
# File 'lib/git/copilot/configuration.rb', line 4 def name @name end |
#username ⇒ Object
Returns the value of attribute username
4 5 6 |
# File 'lib/git/copilot/configuration.rb', line 4 def username @username end |
Instance Method Details
#to_committer ⇒ Object
6 7 8 |
# File 'lib/git/copilot/configuration.rb', line 6 def to_committer format "%{name} <%{email}>", name: name, email: email end |
#to_h ⇒ Object
10 11 12 13 14 15 |
# File 'lib/git/copilot/configuration.rb', line 10 def to_h { "name" => name, "email" => email, } end |