Class: FileApiClient::Edit

Inherits:
Object
  • Object
show all
Defined in:
lib/dynalist/file_api_client.rb

Instance Method Summary collapse

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_queryObject



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