Class: Google::Apis::BloggerV3::Pageviews::Count

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Count

Returns a new instance of Count.


792
793
794
# File 'generated/google/apis/blogger_v3/classes.rb', line 792

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

Instance Attribute Details

#countFixnum

Count of page views for the given time range. Corresponds to the JSON property count

Returns:

  • (Fixnum)

785
786
787
# File 'generated/google/apis/blogger_v3/classes.rb', line 785

def count
  @count
end

#time_rangeString

Time range the given count applies to. Corresponds to the JSON property timeRange

Returns:

  • (String)

790
791
792
# File 'generated/google/apis/blogger_v3/classes.rb', line 790

def time_range
  @time_range
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


797
798
799
800
# File 'generated/google/apis/blogger_v3/classes.rb', line 797

def update!(**args)
  @count = args[:count] if args.key?(:count)
  @time_range = args[:time_range] if args.key?(:time_range)
end