Module: StrawberryAPI::Client::CopyToFeedbacks

Included in:
StrawberryAPI::Client
Defined in:
lib/strawberry_api/client/copy_to_feedbacks.rb

Instance Method Summary collapse

Instance Method Details

#copy_to_feedback(id:) ⇒ StrawberryAPI::CopyToFeedback

Fetches a copy to feedback

Parameters:

  • id (Integer)

    Id of the copy to feedback to retrieve

Returns:



11
12
13
14
# File 'lib/strawberry_api/client/copy_to_feedbacks.rb', line 11

def copy_to_feedback(id:)
   data = get("/copy_to_status/#{id}").parse['job']
   data.nil? ? nil : CopyToFeedback.new(data)
end