Class: OpportunityBriefing::Request::Result

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Result.



18
# File 'app/services/opportunity_briefing/request.rb', line 18

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

Instance Attribute Details

#conversationObject (readonly)

Returns the value of attribute conversation

Returns:

  • (Object)

    the current value of conversation



17
18
19
# File 'app/services/opportunity_briefing/request.rb', line 17

def conversation
  @conversation
end

#enqueuedObject (readonly)

Returns the value of attribute enqueued

Returns:

  • (Object)

    the current value of enqueued



17
18
19
# File 'app/services/opportunity_briefing/request.rb', line 17

def enqueued
  @enqueued
end

#error_messageObject (readonly)

Returns the value of attribute error_message

Returns:

  • (Object)

    the current value of error_message



17
18
19
# File 'app/services/opportunity_briefing/request.rb', line 17

def error_message
  @error_message
end

#job_idObject (readonly)

Returns the value of attribute job_id

Returns:

  • (Object)

    the current value of job_id



17
18
19
# File 'app/services/opportunity_briefing/request.rb', line 17

def job_id
  @job_id
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



17
18
19
# File 'app/services/opportunity_briefing/request.rb', line 17

def status
  @status
end