Class: Google::Apis::GamesV1::EventPeriodRange

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

Overview

An event period time range.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EventPeriodRange

Returns a new instance of EventPeriodRange.



871
872
873
# File 'generated/google/apis/games_v1/classes.rb', line 871

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

Instance Attribute Details

#kindString

Uniquely identifies the type of this resource. Value is always the fixed string games#eventPeriodRange. Corresponds to the JSON property kind

Returns:

  • (String)


858
859
860
# File 'generated/google/apis/games_v1/classes.rb', line 858

def kind
  @kind
end

#period_end_millisFixnum

The time when this update period ends, in millis, since 1970 UTC (Unix Epoch). Corresponds to the JSON property periodEndMillis

Returns:

  • (Fixnum)


863
864
865
# File 'generated/google/apis/games_v1/classes.rb', line 863

def period_end_millis
  @period_end_millis
end

#period_start_millisFixnum

The time when this update period begins, in millis, since 1970 UTC (Unix Epoch) . Corresponds to the JSON property periodStartMillis

Returns:

  • (Fixnum)


869
870
871
# File 'generated/google/apis/games_v1/classes.rb', line 869

def period_start_millis
  @period_start_millis
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



876
877
878
879
880
# File 'generated/google/apis/games_v1/classes.rb', line 876

def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @period_end_millis = args[:period_end_millis] if args.key?(:period_end_millis)
  @period_start_millis = args[:period_start_millis] if args.key?(:period_start_millis)
end