Class: PlexRubySDK::Models::Operations::GetTokenDetailsSubscription
- Inherits:
-
Object
- Object
- PlexRubySDK::Models::Operations::GetTokenDetailsSubscription
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/plex_ruby_sdk/models/operations/gettokendetails_subscription.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(active: nil, features: nil, payment_service: nil, plan: nil, status: nil, subscribed_at: nil) ⇒ GetTokenDetailsSubscription
constructor
A new instance of GetTokenDetailsSubscription.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(active: nil, features: nil, payment_service: nil, plan: nil, status: nil, subscribed_at: nil) ⇒ GetTokenDetailsSubscription
Returns a new instance of GetTokenDetailsSubscription.
34 35 36 37 38 39 40 41 |
# File 'lib/plex_ruby_sdk/models/operations/gettokendetails_subscription.rb', line 34 def initialize(active: nil, features: nil, payment_service: nil, plan: nil, status: nil, subscribed_at: nil) @active = active @features = features @payment_service = payment_service @plan = plan @status = status @subscribed_at = subscribed_at end |
Instance Method Details
#==(other) ⇒ Object
43 44 45 46 47 48 49 50 51 52 |
# File 'lib/plex_ruby_sdk/models/operations/gettokendetails_subscription.rb', line 43 def ==(other) return false unless other.is_a? self.class return false unless @active == other.active return false unless @features == other.features return false unless @payment_service == other.payment_service return false unless @plan == other.plan return false unless @status == other.status return false unless @subscribed_at == other.subscribed_at true end |