Module: StrawberryAPI::Client::AssetFeedbacks

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

Instance Method Summary collapse

Instance Method Details

#asset_feedback(id:) ⇒ StrawberryAPI::AssetFeedback

Fetches a asset feedback

Parameters:

  • id (Integer)

    Id of the asset feedback to retrieve

Returns:



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

def asset_feedback(id:)
   data = get("/asset_status/#{id}").parse['job']
   data.nil? ? nil : AssetFeedback.new(data)
end