Class: FastpixClient::Models::Components::MediaCancelResponse
- Inherits:
-
Object
- Object
- FastpixClient::Models::Components::MediaCancelResponse
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/fastpix_client/models/components/mediacancelresponse.rb
Overview
Response returned when an upload is cancelled.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(upload_id: nil, trial: nil, status: nil, url: nil, cors_origin: nil, max_resolution: nil, access_policy: nil, metadata: nil, timeout: nil, title: nil, creator_id: nil) ⇒ MediaCancelResponse
constructor
A new instance of MediaCancelResponse.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(upload_id: nil, trial: nil, status: nil, url: nil, cors_origin: nil, max_resolution: nil, access_policy: nil, metadata: nil, timeout: nil, title: nil, creator_id: nil) ⇒ MediaCancelResponse
Returns a new instance of MediaCancelResponse.
40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/fastpix_client/models/components/mediacancelresponse.rb', line 40 def initialize(upload_id: nil, trial: nil, status: nil, url: nil, cors_origin: nil, max_resolution: nil, access_policy: nil, metadata: nil, timeout: nil, title: nil, creator_id: nil) @upload_id = upload_id @trial = trial @status = status @url = url @cors_origin = cors_origin @max_resolution = max_resolution @access_policy = access_policy = @timeout = timeout @title = title @creator_id = creator_id end |
Instance Method Details
#==(other) ⇒ Object
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/fastpix_client/models/components/mediacancelresponse.rb', line 55 def ==(other) return false unless other.is_a? self.class return false unless @upload_id == other.upload_id return false unless @trial == other.trial return false unless @status == other.status return false unless @url == other.url return false unless @cors_origin == other.cors_origin return false unless @max_resolution == other.max_resolution return false unless @access_policy == other.access_policy return false unless == other. return false unless @timeout == other.timeout return false unless @title == other.title return false unless @creator_id == other.creator_id true end |