Class: GmailSignaturePusher::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/gmail_signature_pusher.rb

Overview

Service object: result.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#emailObject (readonly)

Returns the value of attribute email

Returns:

  • (Object)

    the current value of email



9
10
11
# File 'app/services/gmail_signature_pusher.rb', line 9

def email
  @email
end

#employee_idObject (readonly)

Returns the value of attribute employee_id

Returns:

  • (Object)

    the current value of employee_id



9
10
11
# File 'app/services/gmail_signature_pusher.rb', line 9

def employee_id
  @employee_id
end

#employee_nameObject (readonly)

Returns the value of attribute employee_name

Returns:

  • (Object)

    the current value of employee_name



9
10
11
# File 'app/services/gmail_signature_pusher.rb', line 9

def employee_name
  @employee_name
end

#errorObject (readonly)

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



9
10
11
# File 'app/services/gmail_signature_pusher.rb', line 9

def error
  @error
end

#successObject (readonly)

Returns the value of attribute success

Returns:

  • (Object)

    the current value of success



9
10
11
# File 'app/services/gmail_signature_pusher.rb', line 9

def success
  @success
end