Class: Stripe::FileService::CreateParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::FileService::CreateParams
- Defined in:
- lib/stripe/services/file_service.rb
Defined Under Namespace
Classes: FileLinkData
Instance Attribute Summary collapse
-
#expand ⇒ Object
Specifies which fields in the response should be expanded.
-
#file ⇒ Object
A file to upload.
-
#file_link_data ⇒ Object
Optional parameters that automatically create a [file link](stripe.com/docs/api#file_links) for the newly created file.
-
#purpose ⇒ Object
The [purpose](stripe.com/docs/file-upload#uploading-a-file) of the uploaded file.
Instance Method Summary collapse
-
#initialize(expand: nil, file: nil, file_link_data: nil, purpose: nil) ⇒ CreateParams
constructor
A new instance of CreateParams.
Methods inherited from RequestParams
Constructor Details
#initialize(expand: nil, file: nil, file_link_data: nil, purpose: nil) ⇒ CreateParams
Returns a new instance of CreateParams.
78 79 80 81 82 83 |
# File 'lib/stripe/services/file_service.rb', line 78 def initialize(expand: nil, file: nil, file_link_data: nil, purpose: nil) @expand = @file = file @file_link_data = file_link_data @purpose = purpose end |
Instance Attribute Details
#expand ⇒ Object
Specifies which fields in the response should be expanded.
70 71 72 |
# File 'lib/stripe/services/file_service.rb', line 70 def @expand end |
#file ⇒ Object
A file to upload. Make sure that the specifications follow RFC 2388, which defines file transfers for the ‘multipart/form-data` protocol.
72 73 74 |
# File 'lib/stripe/services/file_service.rb', line 72 def file @file end |
#file_link_data ⇒ Object
Optional parameters that automatically create a [file link](stripe.com/docs/api#file_links) for the newly created file.
74 75 76 |
# File 'lib/stripe/services/file_service.rb', line 74 def file_link_data @file_link_data end |
#purpose ⇒ Object
The [purpose](stripe.com/docs/file-upload#uploading-a-file) of the uploaded file.
76 77 78 |
# File 'lib/stripe/services/file_service.rb', line 76 def purpose @purpose end |