Class: OpportunityBriefing::Generate::Result

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status: nil, enqueued: false, job_id: nil, error_message: nil) ⇒ Result

Returns a new instance of Result.



16
# File 'app/services/opportunity_briefing/generate.rb', line 16

def initialize(status: nil, enqueued: false, job_id: nil, error_message: nil) = super

Instance Attribute Details

#enqueuedObject (readonly)

Returns the value of attribute enqueued

Returns:

  • (Object)

    the current value of enqueued



15
16
17
# File 'app/services/opportunity_briefing/generate.rb', line 15

def enqueued
  @enqueued
end

#error_messageObject (readonly)

Returns the value of attribute error_message

Returns:

  • (Object)

    the current value of error_message



15
16
17
# File 'app/services/opportunity_briefing/generate.rb', line 15

def error_message
  @error_message
end

#job_idObject (readonly)

Returns the value of attribute job_id

Returns:

  • (Object)

    the current value of job_id



15
16
17
# File 'app/services/opportunity_briefing/generate.rb', line 15

def job_id
  @job_id
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



15
16
17
# File 'app/services/opportunity_briefing/generate.rb', line 15

def status
  @status
end