Class: Google::Apis::ContentV2::AccountStatusStatistics

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AccountStatusStatistics

Returns a new instance of AccountStatusStatistics.



689
690
691
# File 'lib/google/apis/content_v2/classes.rb', line 689

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

Instance Attribute Details

#activeFixnum

Number of active offers. Corresponds to the JSON property active

Returns:

  • (Fixnum)


672
673
674
# File 'lib/google/apis/content_v2/classes.rb', line 672

def active
  @active
end

#disapprovedFixnum

Number of disapproved offers. Corresponds to the JSON property disapproved

Returns:

  • (Fixnum)


677
678
679
# File 'lib/google/apis/content_v2/classes.rb', line 677

def disapproved
  @disapproved
end

#expiringFixnum

Number of expiring offers. Corresponds to the JSON property expiring

Returns:

  • (Fixnum)


682
683
684
# File 'lib/google/apis/content_v2/classes.rb', line 682

def expiring
  @expiring
end

#pendingFixnum

Number of pending offers. Corresponds to the JSON property pending

Returns:

  • (Fixnum)


687
688
689
# File 'lib/google/apis/content_v2/classes.rb', line 687

def pending
  @pending
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



694
695
696
697
698
699
# File 'lib/google/apis/content_v2/classes.rb', line 694

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