Class: Etna::Clients::Metis::CopyFilesRequest
- Inherits:
-
Struct
- Object
- Struct
- Etna::Clients::Metis::CopyFilesRequest
- Includes:
- JsonSerializableStruct
- Defined in:
- lib/etna/clients/metis/models.rb
Instance Attribute Summary collapse
-
#project_name ⇒ Object
Returns the value of attribute project_name.
-
#revisions ⇒ Object
Returns the value of attribute revisions.
Instance Method Summary collapse
- #add_revision(revision) ⇒ Object
-
#initialize(**args) ⇒ CopyFilesRequest
constructor
A new instance of CopyFilesRequest.
- #to_h ⇒ Object
Methods included from JsonSerializableStruct
Constructor Details
#initialize(**args) ⇒ CopyFilesRequest
Returns a new instance of CopyFilesRequest.
126 127 128 |
# File 'lib/etna/clients/metis/models.rb', line 126 def initialize(**args) super({revisions: []}.update(args)) end |
Instance Attribute Details
#project_name ⇒ Object
Returns the value of attribute project_name
123 124 125 |
# File 'lib/etna/clients/metis/models.rb', line 123 def project_name @project_name end |
#revisions ⇒ Object
Returns the value of attribute revisions
123 124 125 |
# File 'lib/etna/clients/metis/models.rb', line 123 def revisions @revisions end |
Instance Method Details
#add_revision(revision) ⇒ Object
130 131 132 |
# File 'lib/etna/clients/metis/models.rb', line 130 def add_revision(revision) revisions << revision end |
#to_h ⇒ Object
134 135 136 137 138 |
# File 'lib/etna/clients/metis/models.rb', line 134 def to_h # The nested :revisions values don't get converted correctly with transform_values, so it's # easier to do from a JSON string JSON.parse(to_json, :symbolize_names => true) end |