class Fastlane::Actions::GiffyRandomGifUrlAction
Public Class Methods
available_options()
click to toggle source
# File lib/fastlane/plugin/giffy/actions/giffy_random_gif_url_action.rb, line 16 def self.available_options [ FastlaneCore::ConfigItem.new(key: :api_key, env_name: "GIFFY_API_KEY", description: "API key for Giffy API", optional: false, type: String), FastlaneCore::ConfigItem.new(key: :original_gif, description: "If true returns URL to not downsampled GIF with much larger size", default_value: false, optional: true, type: String), FastlaneCore::ConfigItem.new(key: :tag, description: "Tag by which GIFs will be searched", optional: false, type: String) ] end
description()
click to toggle source
# File lib/fastlane/plugin/giffy/actions/giffy_random_gif_url_action.rb, line 8 def self.description "Allows to obtain URL to some random funny GIF from Giffy.com" end
is_supported?(platform)
click to toggle source
# File lib/fastlane/plugin/giffy/actions/giffy_random_gif_url_action.rb, line 36 def self.is_supported?(platform) true end
run(params)
click to toggle source
# File lib/fastlane/plugin/giffy/actions/giffy_random_gif_url_action.rb, line 4 def self.run(params) return Helper::GiffyHelper.get_random_gif_url('gifs', params) end