Sha256: fe5c80a3ea39117870c8d984a44e86d5831822da8dcbc994422836ab9a8a42cb
Contents?: true
Size: 627 Bytes
Versions: 5
Compression:
Stored size: 627 Bytes
Contents
# frozen_string_literal: true require 'json' module GoogleAnalyticsV4Api class Account attr_accessor :name, :createTime, :updateTime, :displayName, :regionCode def initialize(client, attributes = {}) @client = client attributes.each do |k, v| self.send("#{k}=", v) end end def properties @client.properties(name) end def property(property_name) @client.property(property_name) end def self.parse_list(client, body) JSON.parse(body)["accounts"].map do |attrs| GoogleAnalyticsV4Api::Account.new(client, attrs) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems