Class: Google::Apis::WalletobjectsV1::TimeInterval

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TimeInterval

Returns a new instance of TimeInterval.



7987
7988
7989
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7987

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

Instance Attribute Details

#endGoogle::Apis::WalletobjectsV1::DateTime

End time of the interval. Offset is not required. If an offset is provided and start time is set, start must also include an offset. Corresponds to the JSON property end



7973
7974
7975
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7973

def end
  @end
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " walletobjects#timeInterval". Corresponds to the JSON property kind

Returns:

  • (String)


7979
7980
7981
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7979

def kind
  @kind
end

#startGoogle::Apis::WalletobjectsV1::DateTime

Start time of the interval. Offset is not required. If an offset is provided and end time is set, end must also include an offset. Corresponds to the JSON property start



7985
7986
7987
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7985

def start
  @start
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7992
7993
7994
7995
7996
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7992

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