Module: ViddiaiCom
- Defined in:
- lib/viddiai_com.rb
Constant Summary collapse
- VERSION =
"0.1.0"- HOMEPAGE =
"https://viddiai.com"- NAME =
"Viddi AI"- DESCRIPTION =
"All-in-one AI creative agent for video, image, and music generation."- KEYWORDS =
[ "viddi ai", "ai video generator", "text to video ai", "ai image generator", "ai music generator", "all-in-one ai creative tool", "ai content generator agent" ].freeze
Class Method Summary collapse
-
.build_url(prompt = nil) ⇒ Object
Build a deep link back to https://viddiai.com with optional prompt + UTM.
- .hello ⇒ Object
- .homepage ⇒ Object
Class Method Details
.build_url(prompt = nil) ⇒ Object
Build a deep link back to https://viddiai.com with optional prompt + UTM.
26 27 28 29 30 31 32 33 |
# File 'lib/viddiai_com.rb', line 26 def self.build_url(prompt = nil) if prompt.nil? || prompt.to_s.strip.empty? "#{HOMEPAGE}/?utm_source=viddiai-com-gem&utm_medium=rubygems" else encoded = prompt.to_s.strip.gsub(" ", "+") "#{HOMEPAGE}/?prompt=#{encoded}&utm_source=viddiai-com-gem&utm_medium=rubygems" end end |
.hello ⇒ Object
17 18 19 |
# File 'lib/viddiai_com.rb', line 17 def self.hello "hello from viddiai.com" end |
.homepage ⇒ Object
21 22 23 |
# File 'lib/viddiai_com.rb', line 21 def self.homepage HOMEPAGE end |