Class: PlexRubySDK::Models::Operations::Connections
- Inherits:
-
Object
- Object
- PlexRubySDK::Models::Operations::Connections
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/plex_ruby_sdk/models/operations/connections.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(address: nil, i_pv6: nil, local: nil, port: nil, protocol: nil, relay: nil, uri: nil) ⇒ Connections
constructor
A new instance of Connections.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(address: nil, i_pv6: nil, local: nil, port: nil, protocol: nil, relay: nil, uri: nil) ⇒ Connections
Returns a new instance of Connections.
36 37 38 39 40 41 42 43 44 |
# File 'lib/plex_ruby_sdk/models/operations/connections.rb', line 36 def initialize(address: nil, i_pv6: nil, local: nil, port: nil, protocol: nil, relay: nil, uri: nil) @address = address @i_pv6 = i_pv6 @local = local @port = port @protocol = protocol @relay = relay @uri = uri end |
Instance Method Details
#==(other) ⇒ Object
46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/plex_ruby_sdk/models/operations/connections.rb', line 46 def ==(other) return false unless other.is_a? self.class return false unless @address == other.address return false unless @i_pv6 == other.i_pv6 return false unless @local == other.local return false unless @port == other.port return false unless @protocol == other.protocol return false unless @relay == other.relay return false unless @uri == other.uri true end |