Sha256: 7a84535d80c048628a9a51ac0533f170aad6b50f4f20071503e172eea881b653
Contents?: true
Size: 1.17 KB
Versions: 3
Compression:
Stored size: 1.17 KB
Contents
module Supply class Listing attr_reader :language attr_accessor :title attr_accessor :short_description attr_accessor :full_description attr_accessor :video # Initializes the listing to use the given api client, language, and fills it with the current listing if available def initialize(google_api, language, source_listing = nil) @google_api = google_api @language = language if source_listing # this might be nil, e.g. when creating a new locale self.title = source_listing.title self.short_description = source_listing.short_description self.full_description = source_listing.full_description self.video = source_listing.video end end # Updates the listing in the current edit def save @google_api.update_listing_for_language(language: language, title: title, short_description: short_description, full_description: full_description, video: video) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fastlane_hotfix-2.165.1 | supply/lib/supply/listing.rb |
fastlane_hotfix-2.165.0 | supply/lib/supply/listing.rb |
fastlane_hotfix-2.187.0 | supply/lib/supply/listing.rb |