Class: FastpixClient::Models::Components::PlaybackIdDomains
- Inherits:
-
Object
- Object
- FastpixClient::Models::Components::PlaybackIdDomains
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/fastpix_client/models/components/playbackid_domains.rb
Overview
Restrictions based on the originating domain of a request (for example, whether requests from certain websites must be allowed or blocked).
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(default_policy: nil, allow: nil, deny: nil) ⇒ PlaybackIdDomains
constructor
A new instance of PlaybackIdDomains.
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.
23 24 25 26 27 |
# File 'lib/fastpix_client/models/components/playbackid_domains.rb', line 23 def initialize(default_policy: nil, allow: nil, deny: nil) @default_policy = default_policy @allow = allow @deny = deny end |
Instance Method Details
#==(other) ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/fastpix_client/models/components/playbackid_domains.rb', line 30 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 |