Class: FastpixClient::Models::Operations::UpdateUserAgentRestrictionsRequestBody
- Inherits:
-
Object
- Object
- FastpixClient::Models::Operations::UpdateUserAgentRestrictionsRequestBody
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/fastpix_client/models/operations/update_user_agent_restrictions_requestbody.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(allow: nil, deny: nil, default_policy: Models::Operations::UpdateUserAgentRestrictionsDefaultPolicy::ALLOW) ⇒ UpdateUserAgentRestrictionsRequestBody
constructor
A new instance of UpdateUserAgentRestrictionsRequestBody.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(allow: nil, deny: nil, default_policy: Models::Operations::UpdateUserAgentRestrictionsDefaultPolicy::ALLOW) ⇒ UpdateUserAgentRestrictionsRequestBody
Returns a new instance of UpdateUserAgentRestrictionsRequestBody.
23 24 25 26 27 |
# File 'lib/fastpix_client/models/operations/update_user_agent_restrictions_requestbody.rb', line 23 def initialize(allow: nil, deny: nil, default_policy: Models::Operations::UpdateUserAgentRestrictionsDefaultPolicy::ALLOW) @allow = allow @deny = deny @default_policy = default_policy end |
Instance Method Details
#==(other) ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/fastpix_client/models/operations/update_user_agent_restrictions_requestbody.rb', line 30 def ==(other) return false unless other.is_a? self.class return false unless @allow == other.allow return false unless @deny == other.deny return false unless @default_policy == other.default_policy true end |