Class: Google::Apis::FcmdataV1beta1::GoogleFirebaseFcmDataV1beta1AndroidDeliveryData

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/fcmdata_v1beta1/classes.rb,
lib/google/apis/fcmdata_v1beta1/representations.rb,
lib/google/apis/fcmdata_v1beta1/representations.rb

Overview

Message delivery data for a given date, app, and analytics label combination.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFirebaseFcmDataV1beta1AndroidDeliveryData

Returns a new instance of GoogleFirebaseFcmDataV1beta1AndroidDeliveryData.



57
58
59
# File 'lib/google/apis/fcmdata_v1beta1/classes.rb', line 57

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#analytics_labelString

The analytics label associated with the messages sent. All messages sent without an analytics label will be grouped together in a single entry. Corresponds to the JSON property analyticsLabel

Returns:

  • (String)


33
34
35
# File 'lib/google/apis/fcmdata_v1beta1/classes.rb', line 33

def analytics_label
  @analytics_label
end

#app_idString

The app ID to which the messages were sent. Corresponds to the JSON property appId

Returns:

  • (String)


38
39
40
# File 'lib/google/apis/fcmdata_v1beta1/classes.rb', line 38

def app_id
  @app_id
end

#dataGoogle::Apis::FcmdataV1beta1::GoogleFirebaseFcmDataV1beta1Data

Data detailing messaging delivery Corresponds to the JSON property data



43
44
45
# File 'lib/google/apis/fcmdata_v1beta1/classes.rb', line 43

def data
  @data
end

#dateGoogle::Apis::FcmdataV1beta1::GoogleTypeDate

Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type. TimeOfDay * google.type.DateTime * google.protobuf.Timestamp Corresponds to the JSON property date



55
56
57
# File 'lib/google/apis/fcmdata_v1beta1/classes.rb', line 55

def date
  @date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



62
63
64
65
66
67
# File 'lib/google/apis/fcmdata_v1beta1/classes.rb', line 62

def update!(**args)
  @analytics_label = args[:analytics_label] if args.key?(:analytics_label)
  @app_id = args[:app_id] if args.key?(:app_id)
  @data = args[:data] if args.key?(:data)
  @date = args[:date] if args.key?(:date)
end