class Spaceship::Tunes::AppReviewAttachment
Represents an image hosted on App
Store Connect. Used for app store review attachment file.
Constants
- HOST_URL
Attributes
Public Instance Methods
Source
# File spaceship/lib/spaceship/tunes/app_review_attachment.rb, line 24 def reset!(attrs = {}) update_raw_data!( { asset_token: nil, type_of_file: nil, url: nil, original_file_name: nil }.merge(attrs) ) end
Source
# File spaceship/lib/spaceship/tunes/app_review_attachment.rb, line 35 def setup # Since September 2015 we don't get the url anymore, so we have to manually build it self.url = "#{HOST_URL}/#{self.asset_token}" end
Private Instance Methods
Source
# File spaceship/lib/spaceship/tunes/app_review_attachment.rb, line 42 def update_raw_data!(hash) hash.each do |k, v| self.send("#{k}=", v) end end