Class: Pago::V2026_04::Models::S3DownloadURL
- Inherits:
-
Model
- Object
- Model
- Pago::V2026_04::Models::S3DownloadURL
show all
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary
collapse
- JSON_KEYS =
{
url: "url",
headers: "headers",
expires_at: "expires_at"
}.freeze
- REQUIRED_KEYS =
["url", "expires_at"].freeze
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Model
#==, #[], #field_set?, #hash, #inspect, json_keys, required_json_keys, #to_json, #to_json_hash, wrap_raw
Constructor Details
#initialize(url:, headers: ::Pago::UNSET, expires_at:) ⇒ S3DownloadURL
Returns a new instance of S3DownloadURL.
38670
38671
38672
38673
38674
38675
38676
38677
38678
38679
|
# File 'lib/pago/v2026_04/models.rb', line 38670
def initialize(
url:,
headers: ::Pago::UNSET,
expires_at:
)
super()
assign(:url, url)
assign(:headers, )
assign(:expires_at, expires_at)
end
|
Instance Attribute Details
#expires_at ⇒ String
38668
38669
38670
|
# File 'lib/pago/v2026_04/models.rb', line 38668
def expires_at
@expires_at
end
|
38665
38666
38667
|
# File 'lib/pago/v2026_04/models.rb', line 38665
def
@headers
end
|
#url ⇒ String
38662
38663
38664
|
# File 'lib/pago/v2026_04/models.rb', line 38662
def url
@url
end
|
Class Method Details
38683
38684
38685
38686
38687
38688
38689
38690
38691
38692
38693
38694
38695
38696
|
# File 'lib/pago/v2026_04/models.rb', line 38683
def self.from_json(data)
data = ::JSON.parse(data) if data.is_a?(String)
data = ::Pago::Serde.object(data)
return nil if data.nil?
wrap_raw(
new(
url: (data.key?("url") ? data["url"] : ::Pago::UNSET),
headers: (data.key?("headers") ? data["headers"] : ::Pago::UNSET),
expires_at: (data.key?("expires_at") ? data["expires_at"] : ::Pago::UNSET)
),
data
)
end
|