Sha256: b8ca24ba34d7200df23a693ee25c7ff1b380cc6bbed718166f752fa0a3017428
Contents?: true
Size: 657 Bytes
Versions: 20
Compression:
Stored size: 657 Bytes
Contents
module SparkApi module Models class AccountReport < Account def self.report(account_id, arguments={}) collect(connection.get("/accounts/#{account_id}/report", arguments)).first end def DisplayName self.Name end def primary_email if Array(emails).any? && emails.primary emails.primary.Address end end def primary_phone if Array(phones).any? && phones.primary phones.primary.Number end end def logo if images.kind_of? Array images.find { |image| image.Type == "Logo" } end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems