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.



189
190
191
# File 'lib/ghostcrawl/client.rb', line 189

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.



209
210
211
# File 'lib/ghostcrawl/client.rb', line 209

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.



201
202
203
# File 'lib/ghostcrawl/client.rb', line 201

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.



205
206
207
# File 'lib/ghostcrawl/client.rb', line 205

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.



193
194
195
# File 'lib/ghostcrawl/client.rb', line 193

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.



197
198
199
# File 'lib/ghostcrawl/client.rb', line 197

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