Class: FastpixApiSDK::Models::Components::PlaybackIdDomains

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

Overview

Restrictions based on the originating domain of a request (e.g., whether requests from certain websites should be allowed or blocked).

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(default_policy: nil, allow: nil, deny: nil) ⇒ PlaybackIdDomains

Returns a new instance of PlaybackIdDomains.



24
25
26
27
28
# File 'lib/fastpix_api_sdk/models/components/playbackid_domains.rb', line 24

def initialize(default_policy: nil, allow: nil, deny: nil)
  @default_policy = default_policy
  @allow = allow
  @deny = deny
end

Instance Method Details

#==(other) ⇒ Object



31
32
33
34
35
36
37
# File 'lib/fastpix_api_sdk/models/components/playbackid_domains.rb', line 31

def ==(other)
  return false unless other.is_a? self.class
  return false unless @default_policy == other.default_policy
  return false unless @allow == other.allow
  return false unless @deny == other.deny
  true
end