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

This is a JSON template for an event period time range.

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) ⇒ EventPeriodRange

Returns a new instance of EventPeriodRange



936
937
938
# File 'generated/google/apis/games_v1/classes.rb', line 936

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)


923
924
925
# File 'generated/google/apis/games_v1/classes.rb', line 923

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)


928
929
930
# File 'generated/google/apis/games_v1/classes.rb', line 928

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)


934
935
936
# File 'generated/google/apis/games_v1/classes.rb', line 934

def period_start_millis
  @period_start_millis
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



941
942
943
944
945
# File 'generated/google/apis/games_v1/classes.rb', line 941

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