Class: Etna::Clients::Metis::CreateFolderRequest

Inherits:
FolderRequest
  • Object
show all
Includes:
JsonSerializableStruct
Defined in:
lib/etna/clients/metis/models.rb

Instance Attribute Summary

Attributes inherited from FolderRequest

#bucket_name, #folder_path, #project_name

Instance Method Summary collapse

Methods included from JsonSerializableStruct

#as_json, included, #to_json

Constructor Details

#initialize(**params) ⇒ CreateFolderRequest

Returns a new instance of CreateFolderRequest.



119
120
121
# File 'lib/etna/clients/metis/models.rb', line 119

def initialize(**params)
  super({}.update(params))
end

Instance Method Details

#to_hObject



123
124
125
126
127
128
# File 'lib/etna/clients/metis/models.rb', line 123

def to_h
  # The :project_name comes in from Polyphemus as a symbol value,
  #   we need to make sure it's a string because it's going
  #   in the URL.
  super().compact.transform_values(&:to_s)
end