Class: Google::Apis::ContentV2_1::AccountStatusStatistics

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AccountStatusStatistics

Returns a new instance of AccountStatusStatistics.



1193
1194
1195
# File 'lib/google/apis/content_v2_1/classes.rb', line 1193

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

Instance Attribute Details

#activeFixnum

Number of active offers. Corresponds to the JSON property active

Returns:

  • (Fixnum)


1176
1177
1178
# File 'lib/google/apis/content_v2_1/classes.rb', line 1176

def active
  @active
end

#disapprovedFixnum

Number of disapproved offers. Corresponds to the JSON property disapproved

Returns:

  • (Fixnum)


1181
1182
1183
# File 'lib/google/apis/content_v2_1/classes.rb', line 1181

def disapproved
  @disapproved
end

#expiringFixnum

Number of expiring offers. Corresponds to the JSON property expiring

Returns:

  • (Fixnum)


1186
1187
1188
# File 'lib/google/apis/content_v2_1/classes.rb', line 1186

def expiring
  @expiring
end

#pendingFixnum

Number of pending offers. Corresponds to the JSON property pending

Returns:

  • (Fixnum)


1191
1192
1193
# File 'lib/google/apis/content_v2_1/classes.rb', line 1191

def pending
  @pending
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1198
1199
1200
1201
1202
1203
# File 'lib/google/apis/content_v2_1/classes.rb', line 1198

def update!(**args)
  @active = args[:active] if args.key?(:active)
  @disapproved = args[:disapproved] if args.key?(:disapproved)
  @expiring = args[:expiring] if args.key?(:expiring)
  @pending = args[:pending] if args.key?(:pending)
end