Class: Ghostcrawl::AdditionalDataBody Private

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/ghostcrawl/client.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = {}) ⇒ AdditionalDataBody

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of AdditionalDataBody.



175
176
177
# File 'lib/ghostcrawl/client.rb', line 175

def initialize(data = {})
  @data = data.transform_keys(&:to_s)
end

Class Method Details

.create_from_discriminator_value(_parse_node) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



195
196
197
# File 'lib/ghostcrawl/client.rb', line 195

def self.create_from_discriminator_value(_parse_node)
  AdditionalDataBody.new
end

Instance Method Details

#additional_dataObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



187
188
189
# File 'lib/ghostcrawl/client.rb', line 187

def additional_data
  @data
end

#additional_data=(hash) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



191
192
193
# File 'lib/ghostcrawl/client.rb', line 191

def additional_data=(hash)
  @data = hash.transform_keys(&:to_s)
end

#get_field_deserializersObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



179
180
181
# File 'lib/ghostcrawl/client.rb', line 179

def get_field_deserializers
  {}
end

#serialize(writer) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



183
184
185
# File 'lib/ghostcrawl/client.rb', line 183

def serialize(writer)
  writer.write_additional_data(@data)
end