Class: Nfe::Generated::ContribuintesV2::Microsoft_OData_Edm_Vocabularies_IEdmTerm
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::ContribuintesV2::Microsoft_OData_Edm_Vocabularies_IEdmTerm
- Defined in:
- lib/nfe/generated/contribuintes_v2/microsoft_odata_edm_vocabularies_iedm_term.rb,
sig/nfe/generated/contribuintes_v2/microsoft_odata_edm_vocabularies_iedm_term.rbs
Instance Attribute Summary collapse
-
#applies_to ⇒ Object
readonly
Returns the value of attribute applies_to.
-
#default_value ⇒ Object
readonly
Returns the value of attribute default_value.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#namespace ⇒ Object
readonly
Returns the value of attribute namespace.
-
#schema_element_kind ⇒ Object
readonly
Returns the value of attribute schema_element_kind.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Microsoft_OData_Edm_Vocabularies_IEdmTerm
constructor
A new instance of Microsoft_OData_Edm_Vocabularies_IEdmTerm.
Constructor Details
#initialize ⇒ Microsoft_OData_Edm_Vocabularies_IEdmTerm
Returns a new instance of Microsoft_OData_Edm_Vocabularies_IEdmTerm.
16 |
# File 'sig/nfe/generated/contribuintes_v2/microsoft_odata_edm_vocabularies_iedm_term.rbs', line 16
def initialize: (?applies_to: String?, ?default_value: String?, ?name: String?, ?namespace: String?, ?schema_element_kind: untyped, ?type: Microsoft_OData_Edm_IEdmTypeReference) -> void
|
Instance Attribute Details
#applies_to ⇒ Object (readonly)
Returns the value of attribute applies_to
9 10 11 |
# File 'lib/nfe/generated/contribuintes_v2/microsoft_odata_edm_vocabularies_iedm_term.rb', line 9 def applies_to @applies_to end |
#default_value ⇒ Object (readonly)
Returns the value of attribute default_value
9 10 11 |
# File 'lib/nfe/generated/contribuintes_v2/microsoft_odata_edm_vocabularies_iedm_term.rb', line 9 def default_value @default_value end |
#name ⇒ Object (readonly)
Returns the value of attribute name
9 10 11 |
# File 'lib/nfe/generated/contribuintes_v2/microsoft_odata_edm_vocabularies_iedm_term.rb', line 9 def name @name end |
#namespace ⇒ Object (readonly)
Returns the value of attribute namespace
9 10 11 |
# File 'lib/nfe/generated/contribuintes_v2/microsoft_odata_edm_vocabularies_iedm_term.rb', line 9 def namespace @namespace end |
#schema_element_kind ⇒ Object (readonly)
Returns the value of attribute schema_element_kind
9 10 11 |
# File 'lib/nfe/generated/contribuintes_v2/microsoft_odata_edm_vocabularies_iedm_term.rb', line 9 def schema_element_kind @schema_element_kind end |
#type ⇒ Object (readonly)
Returns the value of attribute type
9 10 11 |
# File 'lib/nfe/generated/contribuintes_v2/microsoft_odata_edm_vocabularies_iedm_term.rb', line 9 def type @type end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/nfe/generated/contribuintes_v2/microsoft_odata_edm_vocabularies_iedm_term.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( applies_to: payload["appliesTo"], default_value: payload["defaultValue"], name: payload["name"], namespace: payload["namespace"], schema_element_kind: payload["schemaElementKind"], type: Microsoft_OData_Edm_IEdmTypeReference.from_api(payload["type"]), ) end |
.new ⇒ instance
15 |
# File 'sig/nfe/generated/contribuintes_v2/microsoft_odata_edm_vocabularies_iedm_term.rbs', line 15
def self.new: (?applies_to: String?, ?default_value: String?, ?name: String?, ?namespace: String?, ?schema_element_kind: untyped, ?type: Microsoft_OData_Edm_IEdmTypeReference) -> instance
|