Class: DropboxApi::Metadata::CommitInfo

Inherits:
Base
  • Object
show all
Defined in:
lib/dropbox_api/metadata/commit_info.rb

Class Method Summary collapse

Methods inherited from Base

field, #initialize, #serialized_field, #to_hash

Constructor Details

This class inherits a constructor from DropboxApi::Metadata::Base

Class Method Details

.build_from_options(options) ⇒ Object


10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/dropbox_api/metadata/commit_info.rb', line 10

def build_from_options(options)
  options = Hash[options.map do |key, value|
    case key
    when :mode
      [key.to_s, build_write_mode(value)]
    when :client_modified
      [key.to_s, build_client_modified(value)]
    when :path, :autorename, :mute
      [key.to_s, value]
    end
  end.compact]

  new(options)
end