Sha256: 6fa93e8113e045f29b736642f891d8143f310a8c76aa60ab5dd28f0fba8bb5a5
Contents?: true
Size: 729 Bytes
Versions: 10
Compression:
Stored size: 729 Bytes
Contents
# frozen_string_literal: true module WhatsappSdk module Resource class Contact attr_accessor :addresses, :birthday, :emails, :name, :org, :phones, :urls def initialize(addresses:, birthday:, emails:, name:, org:, phones:, urls:) @addresses = addresses @birthday = birthday @emails = emails @name = name @org = org @phones = phones @urls = urls end def to_h { addresses: addresses.map(&:to_h), birthday: birthday, emails: emails.map(&:to_h), name: name.to_h, org: org.to_h, phones: phones.map(&:to_h), urls: urls.map(&:to_h) } end end end end
Version data entries
10 entries across 10 versions & 1 rubygems