Class: PlexRubySDK::Models::Operations::PastSubscription
- Inherits:
-
Object
- Object
- PlexRubySDK::Models::Operations::PastSubscription
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/plex_ruby_sdk/models/operations/pastsubscription.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(billing: nil, canceled: nil, can_convert: nil, can_downgrade: nil, can_reactivate: nil, can_upgrade: nil, ends_at: nil, grace_period: nil, id: nil, mode: nil, on_hold: nil, renews_at: nil, state: nil, transfer: nil, type: nil) ⇒ PastSubscription
constructor
A new instance of PastSubscription.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(billing: nil, canceled: nil, can_convert: nil, can_downgrade: nil, can_reactivate: nil, can_upgrade: nil, ends_at: nil, grace_period: nil, id: nil, mode: nil, on_hold: nil, renews_at: nil, state: nil, transfer: nil, type: nil) ⇒ PastSubscription
Returns a new instance of PastSubscription.
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/plex_ruby_sdk/models/operations/pastsubscription.rb', line 52 def initialize(billing: nil, canceled: nil, can_convert: nil, can_downgrade: nil, can_reactivate: nil, can_upgrade: nil, ends_at: nil, grace_period: nil, id: nil, mode: nil, on_hold: nil, renews_at: nil, state: nil, transfer: nil, type: nil) @billing = billing @canceled = canceled @can_convert = can_convert @can_downgrade = can_downgrade @can_reactivate = can_reactivate @can_upgrade = can_upgrade @ends_at = ends_at @grace_period = grace_period @id = id @mode = mode @on_hold = on_hold @renews_at = renews_at @state = state @transfer = transfer @type = type end |
Instance Method Details
#==(other) ⇒ Object
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/plex_ruby_sdk/models/operations/pastsubscription.rb', line 70 def ==(other) return false unless other.is_a? self.class return false unless @billing == other.billing return false unless @canceled == other.canceled return false unless @can_convert == other.can_convert return false unless @can_downgrade == other.can_downgrade return false unless @can_reactivate == other.can_reactivate return false unless @can_upgrade == other.can_upgrade return false unless @ends_at == other.ends_at return false unless @grace_period == other.grace_period return false unless @id == other.id return false unless @mode == other.mode return false unless @on_hold == other.on_hold return false unless @renews_at == other.renews_at return false unless @state == other.state return false unless @transfer == other.transfer return false unless @type == other.type true end |