Class: Google::Apis::YoutubePartnerV1::StateCompleted

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/youtube_partner_v1/classes.rb,
generated/google/apis/youtube_partner_v1/representations.rb,
generated/google/apis/youtube_partner_v1/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) ⇒ StateCompleted

Returns a new instance of StateCompleted



3629
3630
3631
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3629

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

Instance Attribute Details

#stateString

The state that the order entered. Corresponds to the JSON property state

Returns:

  • (String)


3622
3623
3624
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3622

def state
  @state
end

#time_completedFixnum

The time that the state transition occurred. Corresponds to the JSON property timeCompleted

Returns:

  • (Fixnum)


3627
3628
3629
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3627

def time_completed
  @time_completed
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3634
3635
3636
3637
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3634

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