Class: FastpixApiSDK::Models::Operations::CreateMediaPlaybackIdUserAgents

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

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) ⇒ CreateMediaPlaybackIdUserAgents

Returns a new instance of CreateMediaPlaybackIdUserAgents.



31
32
33
34
35
# File 'lib/fastpix_api_sdk/models/operations/create_media_playback_id_useragents.rb', line 31

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

Instance Method Details

#==(other) ⇒ Object



38
39
40
41
42
43
44
# File 'lib/fastpix_api_sdk/models/operations/create_media_playback_id_useragents.rb', line 38

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