Class: Nfe::Generated::ServiceInvoiceRtcV1::ActivityEvent
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::ServiceInvoiceRtcV1::ActivityEvent
- Defined in:
- lib/nfe/generated/service_invoice_rtc_v1/activity_event.rb,
sig/nfe/generated/service_invoice_rtc_v1/activity_event.rbs
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#begin_on ⇒ Object
readonly
Returns the value of attribute begin_on.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#end_on ⇒ Object
readonly
Returns the value of attribute end_on.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ ActivityEvent
constructor
A new instance of ActivityEvent.
Constructor Details
#initialize ⇒ ActivityEvent
Returns a new instance of ActivityEvent.
15 |
# File 'sig/nfe/generated/service_invoice_rtc_v1/activity_event.rbs', line 15
def initialize: (?code: String, ?address: AddressDefinition, ?begin_on: String, ?end_on: String, ?name: String) -> void
|
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/activity_event.rb', line 9 def address @address end |
#begin_on ⇒ Object (readonly)
Returns the value of attribute begin_on
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/activity_event.rb', line 9 def begin_on @begin_on end |
#code ⇒ Object (readonly)
Returns the value of attribute code
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/activity_event.rb', line 9 def code @code end |
#end_on ⇒ Object (readonly)
Returns the value of attribute end_on
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/activity_event.rb', line 9 def end_on @end_on end |
#name ⇒ Object (readonly)
Returns the value of attribute name
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/activity_event.rb', line 9 def name @name end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/activity_event.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( code: payload["Code"], address: AddressDefinition.from_api(payload["address"]), begin_on: payload["beginOn"], end_on: payload["endOn"], name: payload["name"], ) end |
.new ⇒ instance
14 |
# File 'sig/nfe/generated/service_invoice_rtc_v1/activity_event.rbs', line 14
def self.new: (?code: String, ?address: AddressDefinition, ?begin_on: String, ?end_on: String, ?name: String) -> instance
|