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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Count

Returns a new instance of Count.



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

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)


791
792
793
# File 'lib/google/apis/blogger_v3/classes.rb', line 791

def count
  @count
end

#time_rangeString

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

Returns:

  • (String)


796
797
798
# File 'lib/google/apis/blogger_v3/classes.rb', line 796

def time_range
  @time_range
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



803
804
805
806
# File 'lib/google/apis/blogger_v3/classes.rb', line 803

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