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.


691
692
693
# File 'generated/google/apis/content_v2/classes.rb', line 691

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

Instance Attribute Details

#activeFixnum

Number of active offers. Corresponds to the JSON property active

Returns:

  • (Fixnum)

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

def active
  @active
end

#disapprovedFixnum

Number of disapproved offers. Corresponds to the JSON property disapproved

Returns:

  • (Fixnum)

679
680
681
# File 'generated/google/apis/content_v2/classes.rb', line 679

def disapproved
  @disapproved
end

#expiringFixnum

Number of expiring offers. Corresponds to the JSON property expiring

Returns:

  • (Fixnum)

684
685
686
# File 'generated/google/apis/content_v2/classes.rb', line 684

def expiring
  @expiring
end

#pendingFixnum

Number of pending offers. Corresponds to the JSON property pending

Returns:

  • (Fixnum)

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

def pending
  @pending
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


696
697
698
699
700
701
# File 'generated/google/apis/content_v2/classes.rb', line 696

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