Class: Nfe::Generated::ContribuintesV2::Microsoft_OData_Edm_Vocabularies_IEdmTerm

Inherits:
Data
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMicrosoft_OData_Edm_Vocabularies_IEdmTerm

Returns a new instance of Microsoft_OData_Edm_Vocabularies_IEdmTerm.

Parameters:



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_toObject (readonly)

Returns the value of attribute applies_to

Returns:

  • (Object)

    the current value of 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_valueObject (readonly)

Returns the value of attribute default_value

Returns:

  • (Object)

    the current value of 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

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



9
10
11
# File 'lib/nfe/generated/contribuintes_v2/microsoft_odata_edm_vocabularies_iedm_term.rb', line 9

def name
  @name
end

#namespaceObject (readonly)

Returns the value of attribute namespace

Returns:

  • (Object)

    the current value of 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_kindObject (readonly)

Returns the value of attribute schema_element_kind

Returns:

  • (Object)

    the current value of 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

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of 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?

Parameters:

  • payload (Hash[String, untyped], nil)

Returns:

  • (instance, nil)


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

.newinstance

Parameters:

Returns:

  • (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