Class: SpreeCmCommissioner::S3PresignedUrlBuilder
- Inherits:
-
Object
- Object
- SpreeCmCommissioner::S3PresignedUrlBuilder
- Defined in:
- app/models/spree_cm_commissioner/s3_presigned_url_builder.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(options) ⇒ S3PresignedUrlBuilder
constructor
{:bucket_name?, (:object_key | :file_name)? }.
Constructor Details
#initialize(options) ⇒ S3PresignedUrlBuilder
{:bucket_name?, (:object_key | :file_name)? }
10 11 12 |
# File 'app/models/spree_cm_commissioner/s3_presigned_url_builder.rb', line 10 def initialize() @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'app/models/spree_cm_commissioner/s3_presigned_url_builder.rb', line 3 def @options end |
Class Method Details
.call(options) ⇒ Object
5 6 7 |
# File 'app/models/spree_cm_commissioner/s3_presigned_url_builder.rb', line 5 def self.call() new().call end |
Instance Method Details
#call ⇒ Object
14 15 16 |
# File 'app/models/spree_cm_commissioner/s3_presigned_url_builder.rb', line 14 def call SpreeCmCommissioner::S3PresignedUrl.new(bucket_name, object_key, uuid) end |