class Snov::GetEmailsBySocialUrl
Attributes
client[R]
Public Class Methods
new(client: Snov.client, url:)
click to toggle source
# File lib/snov/get_emails_by_social_url.rb, line 5 def initialize(client: Snov.client, url:) @client = client @url = url end
Public Instance Methods
prospect()
click to toggle source
# File lib/snov/get_emails_by_social_url.rb, line 10 def prospect @prospect ||= ProspectResult.new(raw_result) end
raw_result()
click to toggle source
# File lib/snov/get_emails_by_social_url.rb, line 14 def raw_result @raw_result ||= client.post("/v1/get-emails-from-url", "url" => @url) .deep_transform_keys! { |key| key.underscore } end