Class: PlexRubySDK::Models::Operations::GetTimelineRequest

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/plex_ruby_sdk/models/operations/gettimeline_request.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(context: nil, duration: nil, has_mde: nil, key: nil, play_back_time: nil, play_queue_item_id: nil, rating_key: nil, row: nil, state: nil, time: nil) ⇒ GetTimelineRequest

Returns a new instance of GetTimelineRequest.



39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/plex_ruby_sdk/models/operations/gettimeline_request.rb', line 39

def initialize(context: nil, duration: nil, has_mde: nil, key: nil, play_back_time: nil, play_queue_item_id: nil, rating_key: nil, row: nil, state: nil, time: nil)
  @context = context
  @duration = duration
  @has_mde = has_mde
  @key = key
  @play_back_time = play_back_time
  @play_queue_item_id = play_queue_item_id
  @rating_key = rating_key
  @row = row
  @state = state
  @time = time
end

Instance Method Details

#==(other) ⇒ Object



52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/plex_ruby_sdk/models/operations/gettimeline_request.rb', line 52

def ==(other)
  return false unless other.is_a? self.class
  return false unless @context == other.context
  return false unless @duration == other.duration
  return false unless @has_mde == other.has_mde
  return false unless @key == other.key
  return false unless @play_back_time == other.play_back_time
  return false unless @play_queue_item_id == other.play_queue_item_id
  return false unless @rating_key == other.rating_key
  return false unless @row == other.row
  return false unless @state == other.state
  return false unless @time == other.time
  true
end