Class: FileApiClient::Edit
- Inherits:
-
Object
- Object
- FileApiClient::Edit
- Defined in:
- lib/dynalist/file_api_client.rb
Instance Method Summary collapse
-
#initialize(file, title) ⇒ Edit
constructor
A new instance of Edit.
- #to_query ⇒ Object
Constructor Details
#initialize(file, title) ⇒ Edit
Returns a new instance of Edit.
31 32 33 34 |
# File 'lib/dynalist/file_api_client.rb', line 31 def initialize(file, title) @file = file @title = title end |
Instance Method Details
#to_query ⇒ Object
36 37 38 39 40 41 42 43 |
# File 'lib/dynalist/file_api_client.rb', line 36 def to_query { action: "edit", type: @file.type, file_id: @file.id, title: @title } end |