Class: PlexRubySDK::Models::Operations::Hub

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(context: nil, hub_identifier: nil, hub_key: nil, key: nil, metadata: nil, more: nil, promoted: nil, size: nil, style: nil, title: nil, type: nil) ⇒ Hub

Returns a new instance of Hub.



41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/plex_ruby_sdk/models/operations/hub.rb', line 41

def initialize(context: nil, hub_identifier: nil, hub_key: nil, key: nil, metadata: nil, more: nil, promoted: nil, size: nil, style: nil, title: nil, type: nil)
  @context = context
  @hub_identifier = hub_identifier
  @hub_key = hub_key
  @key = key
   = 
  @more = more
  @promoted = promoted
  @size = size
  @style = style
  @title = title
  @type = type
end

Instance Method Details

#==(other) ⇒ Object



55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# File 'lib/plex_ruby_sdk/models/operations/hub.rb', line 55

def ==(other)
  return false unless other.is_a? self.class
  return false unless @context == other.context
  return false unless @hub_identifier == other.hub_identifier
  return false unless @hub_key == other.hub_key
  return false unless @key == other.key
  return false unless  == other.
  return false unless @more == other.more
  return false unless @promoted == other.promoted
  return false unless @size == other.size
  return false unless @style == other.style
  return false unless @title == other.title
  return false unless @type == other.type
  true
end