Class: FastpixApiSDK::Models::Components::PlaybackIdAccessRestrictions

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/fastpix_api_sdk/models/components/playbackid_accessrestrictions.rb

Overview

Controls access based on domains and user agents. Defines a default policy (either “allow” or “deny”) and provides lists for explicitly allowed or denied domains and user agents.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(domains: nil, user_agents: nil) ⇒ PlaybackIdAccessRestrictions

Returns a new instance of PlaybackIdAccessRestrictions.



22
23
24
25
# File 'lib/fastpix_api_sdk/models/components/playbackid_accessrestrictions.rb', line 22

def initialize(domains: nil, user_agents: nil)
  @domains = domains
  @user_agents = user_agents
end

Instance Method Details

#==(other) ⇒ Object



28
29
30
31
32
33
# File 'lib/fastpix_api_sdk/models/components/playbackid_accessrestrictions.rb', line 28

def ==(other)
  return false unless other.is_a? self.class
  return false unless @domains == other.domains
  return false unless @user_agents == other.user_agents
  true
end