Class: Nfe::Generated::Nfeio::OutPutLinkResponse
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::Nfeio::OutPutLinkResponse
- Defined in:
- lib/nfe/generated/nfeio/out_put_link_response.rb,
sig/nfe/generated/nfeio/out_put_link_response.rbs
Instance Attribute Summary collapse
-
#file_name ⇒ Object
readonly
Returns the value of attribute file_name.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ OutPutLinkResponse
constructor
A new instance of OutPutLinkResponse.
Constructor Details
#initialize ⇒ OutPutLinkResponse
Returns a new instance of OutPutLinkResponse.
12 |
# File 'sig/nfe/generated/nfeio/out_put_link_response.rbs', line 12
def initialize: (?file_name: String?, ?url: String?) -> void
|
Instance Attribute Details
#file_name ⇒ Object (readonly)
Returns the value of attribute file_name
9 10 11 |
# File 'lib/nfe/generated/nfeio/out_put_link_response.rb', line 9 def file_name @file_name end |
#url ⇒ Object (readonly)
Returns the value of attribute url
9 10 11 |
# File 'lib/nfe/generated/nfeio/out_put_link_response.rb', line 9 def url @url end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 |
# File 'lib/nfe/generated/nfeio/out_put_link_response.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( file_name: payload["fileName"], url: payload["url"], ) end |
.new ⇒ instance
11 |
# File 'sig/nfe/generated/nfeio/out_put_link_response.rbs', line 11
def self.new: (?file_name: String?, ?url: String?) -> instance
|