Class: YouTube::RemoteCaptionsStatus::Summary

Inherits:
Struct
  • Object
show all
Defined in:
app/services/youtube/remote_captions_status.rb

Overview

Service object: summary.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#error_messageObject

Returns the value of attribute error_message

Returns:

  • (Object)

    the current value of error_message



8
9
10
# File 'app/services/youtube/remote_captions_status.rb', line 8

def error_message
  @error_message
end

#stateObject

Returns the value of attribute state

Returns:

  • (Object)

    the current value of state



8
9
10
# File 'app/services/youtube/remote_captions_status.rb', line 8

def state
  @state
end

#tracksObject

Returns the value of attribute tracks

Returns:

  • (Object)

    the current value of tracks



8
9
10
# File 'app/services/youtube/remote_captions_status.rb', line 8

def tracks
  @tracks
end

Instance Method Details

#failed?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'app/services/youtube/remote_captions_status.rb', line 13

def failed?
  state == :failed
end

#loaded?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'app/services/youtube/remote_captions_status.rb', line 9

def loaded?
  state == :loaded
end

#skipped?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'app/services/youtube/remote_captions_status.rb', line 17

def skipped?
  state == :skipped
end