Class: Nfe::Generated::ContribuintesV2::Microsoft_OData_ODataServiceDocument
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::ContribuintesV2::Microsoft_OData_ODataServiceDocument
- Defined in:
- lib/nfe/generated/contribuintes_v2/microsoft_odata_odata_service_document.rb,
sig/nfe/generated/contribuintes_v2/microsoft_odata_odata_service_document.rbs
Instance Attribute Summary collapse
-
#entity_sets ⇒ Object
readonly
Returns the value of attribute entity_sets.
-
#function_imports ⇒ Object
readonly
Returns the value of attribute function_imports.
-
#singletons ⇒ Object
readonly
Returns the value of attribute singletons.
-
#type_annotation ⇒ Object
readonly
Returns the value of attribute type_annotation.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Microsoft_OData_ODataServiceDocument
constructor
A new instance of Microsoft_OData_ODataServiceDocument.
Constructor Details
#initialize ⇒ Microsoft_OData_ODataServiceDocument
Returns a new instance of Microsoft_OData_ODataServiceDocument.
14 |
# File 'sig/nfe/generated/contribuintes_v2/microsoft_odata_odata_service_document.rbs', line 14
def initialize: (?entity_sets: Array[Microsoft_OData_ODataEntitySetInfo]?, ?function_imports: Array[Microsoft_OData_ODataFunctionImportInfo]?, ?singletons: Array[Microsoft_OData_ODataSingletonInfo]?, ?type_annotation: Microsoft_OData_ODataTypeAnnotation) -> void
|
Instance Attribute Details
#entity_sets ⇒ Object (readonly)
Returns the value of attribute entity_sets
9 10 11 |
# File 'lib/nfe/generated/contribuintes_v2/microsoft_odata_odata_service_document.rb', line 9 def entity_sets @entity_sets end |
#function_imports ⇒ Object (readonly)
Returns the value of attribute function_imports
9 10 11 |
# File 'lib/nfe/generated/contribuintes_v2/microsoft_odata_odata_service_document.rb', line 9 def function_imports @function_imports end |
#singletons ⇒ Object (readonly)
Returns the value of attribute singletons
9 10 11 |
# File 'lib/nfe/generated/contribuintes_v2/microsoft_odata_odata_service_document.rb', line 9 def singletons @singletons end |
#type_annotation ⇒ Object (readonly)
Returns the value of attribute type_annotation
9 10 11 |
# File 'lib/nfe/generated/contribuintes_v2/microsoft_odata_odata_service_document.rb', line 9 def type_annotation @type_annotation end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/nfe/generated/contribuintes_v2/microsoft_odata_odata_service_document.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( entity_sets: (payload["entitySets"] || []).map { |e| Microsoft_OData_ODataEntitySetInfo.from_api(e) }, function_imports: (payload["functionImports"] || []).map { |e| Microsoft_OData_ODataFunctionImportInfo.from_api(e) }, singletons: (payload["singletons"] || []).map { |e| Microsoft_OData_ODataSingletonInfo.from_api(e) }, type_annotation: Microsoft_OData_ODataTypeAnnotation.from_api(payload["typeAnnotation"]), ) end |
.new ⇒ instance
13 |
# File 'sig/nfe/generated/contribuintes_v2/microsoft_odata_odata_service_document.rbs', line 13
def self.new: (?entity_sets: Array[Microsoft_OData_ODataEntitySetInfo]?, ?function_imports: Array[Microsoft_OData_ODataFunctionImportInfo]?, ?singletons: Array[Microsoft_OData_ODataSingletonInfo]?, ?type_annotation: Microsoft_OData_ODataTypeAnnotation) -> instance
|