Class: PlexRubySDK::Models::Operations::Release
- Inherits:
-
Object
- Object
- PlexRubySDK::Models::Operations::Release
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/plex_ruby_sdk/models/operations/release.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(added: nil, download_url: nil, fixed: nil, key: nil, state: nil, version: nil) ⇒ Release
constructor
A new instance of Release.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(added: nil, download_url: nil, fixed: nil, key: nil, state: nil, version: nil) ⇒ Release
Returns a new instance of Release.
31 32 33 34 35 36 37 38 |
# File 'lib/plex_ruby_sdk/models/operations/release.rb', line 31 def initialize(added: nil, download_url: nil, fixed: nil, key: nil, state: nil, version: nil) @added = added @download_url = download_url @fixed = fixed @key = key @state = state @version = version end |
Instance Method Details
#==(other) ⇒ Object
40 41 42 43 44 45 46 47 48 49 |
# File 'lib/plex_ruby_sdk/models/operations/release.rb', line 40 def ==(other) return false unless other.is_a? self.class return false unless @added == other.added return false unless @download_url == other.download_url return false unless @fixed == other.fixed return false unless @key == other.key return false unless @state == other.state return false unless @version == other.version true end |