Class: GmailSignaturePusher::Result
- Inherits:
-
Data
- Object
- Data
- GmailSignaturePusher::Result
- Defined in:
- app/services/gmail_signature_pusher.rb
Overview
Service object: result.
Instance Attribute Summary collapse
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#employee_id ⇒ Object
readonly
Returns the value of attribute employee_id.
-
#employee_name ⇒ Object
readonly
Returns the value of attribute employee_name.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#success ⇒ Object
readonly
Returns the value of attribute success.
Instance Method Summary collapse
-
#initialize(employee_id:, employee_name:, email:, success: false, error: nil) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(employee_id:, employee_name:, email:, success: false, error: nil) ⇒ Result
Returns a new instance of Result.
10 11 12 |
# File 'app/services/gmail_signature_pusher.rb', line 10 def initialize(employee_id:, employee_name:, email:, success: false, error: nil) super end |
Instance Attribute Details
#email ⇒ Object (readonly)
Returns the value of attribute email
9 10 11 |
# File 'app/services/gmail_signature_pusher.rb', line 9 def email @email end |
#employee_id ⇒ Object (readonly)
Returns the value of attribute employee_id
9 10 11 |
# File 'app/services/gmail_signature_pusher.rb', line 9 def employee_id @employee_id end |
#employee_name ⇒ Object (readonly)
Returns the value of attribute employee_name
9 10 11 |
# File 'app/services/gmail_signature_pusher.rb', line 9 def employee_name @employee_name end |
#error ⇒ Object (readonly)
Returns the value of attribute error
9 10 11 |
# File 'app/services/gmail_signature_pusher.rb', line 9 def error @error end |
#success ⇒ Object (readonly)
Returns the value of attribute success
9 10 11 |
# File 'app/services/gmail_signature_pusher.rb', line 9 def success @success end |