module PaintSamplesRegisterDomain
PaintSamples registration for the !domain plugin.
Public Instance Methods
Source
# File lib/paint_samples/register_domain.rb, line 12 def register_all PaintSamples.register("domain") do DomainReport.format( domain: "100ide.as", rdap: { available: true, domain: "100ide.as" }, quotes: [ { provider: "Porkbun", register: "$41.00/yr", renew: "$41.00/yr", detail: "public pricing" } ], source_query: "100.ideas", variation_rows: [ { domain: "100.ideas", rdap: { available: true }, quotes: [{ provider: "Porkbun", supported: false, detail: "TLD not supported" }] }, { domain: "100ide.as", rdap: { available: true }, quotes: [{ provider: "Porkbun", register: "$41.00/yr", renew: "$41.00/yr" }] }, { domain: "100ideeas.as", rdap: { available: true }, quotes: [{ provider: "Porkbun", supported: false, detail: "TLD not supported" }] } ] ).split("\n") end PaintSamples.register("domain_available") do DomainReport.format( domain: "coolrabbot123.com", rdap: { available: true, domain: "coolrabbot123.com" }, quotes: [ { provider: "Porkbun", available: true, register: "$11.08/yr", renew: "$11.08/yr", detail: "public pricing" }, { provider: "Namecheap", available: true, register: "$10.28/yr", renew: "$14.98/yr", detail: "API quote" } ] ).split("\n") end PaintSamples.register("domain_tld") do DomainTldReport.format( query: "photo", matches: [ { tld: "photo", supported: true, register: "$32.00/yr", renew: "$32.00/yr" }, { tld: "photography", supported: true, register: "$26.00/yr", renew: "$26.00/yr" } ], total: 2 ).split("\n") end PaintSamples.register("domain_probe") do DomainProbeReport.format( domain: "example.com", whois: { ok: true, registered: true, registrar: "Example Registrar", expires: "2025-08-13", nameservers: %w[NS1.EXAMPLE.COM NS2.EXAMPLE.COM], status: nil }, dig: { ok: true, a: ["93.184.216.34"], aaaa: [], ns: %w[ns1.example.com. ns2.example.com.], mx: [], nxdomain: false } ).split("\n") end end