Sha256: 114663e33de3bf3af5f07924ed7aa2713c3c405e5578bd6757c3b6285a82349d
Contents?: true
Size: 907 Bytes
Versions: 1
Compression:
Stored size: 907 Bytes
Contents
# frozen_string_literal: true module Kentaa module Api module Responses class NewsletterSubscription < Base include Kentaa::Api::Responses::Resource def first_name data[:first_name] end def infix data[:infix] end def last_name data[:last_name] end def name [first_name, infix, last_name].compact.join(" ") end def segment_id data[:segment_id] end def project_id data[:project_id] end def email data[:email] end def locale data[:locale] end def subscription_url data[:subscription_url] end def consent @consent ||= Kentaa::Api::Responses::Consent.new(data[:consent]) if data[:consent] end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kentaa-api-0.1.1 | lib/kentaa/api/responses/newsletter_subscription.rb |