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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AccountStatusStatistics

Returns a new instance of AccountStatusStatistics.



675
676
677
# File 'generated/google/apis/content_v2/classes.rb', line 675

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

Instance Attribute Details

#activeFixnum

Number of active offers. Corresponds to the JSON property active

Returns:

  • (Fixnum)


658
659
660
# File 'generated/google/apis/content_v2/classes.rb', line 658

def active
  @active
end

#disapprovedFixnum

Number of disapproved offers. Corresponds to the JSON property disapproved

Returns:

  • (Fixnum)


663
664
665
# File 'generated/google/apis/content_v2/classes.rb', line 663

def disapproved
  @disapproved
end

#expiringFixnum

Number of expiring offers. Corresponds to the JSON property expiring

Returns:

  • (Fixnum)


668
669
670
# File 'generated/google/apis/content_v2/classes.rb', line 668

def expiring
  @expiring
end

#pendingFixnum

Number of pending offers. Corresponds to the JSON property pending

Returns:

  • (Fixnum)


673
674
675
# File 'generated/google/apis/content_v2/classes.rb', line 673

def pending
  @pending
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



680
681
682
683
684
685
# File 'generated/google/apis/content_v2/classes.rb', line 680

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