Module: ChatWork::File
- Extended by:
- EntityMethods
- Defined in:
- lib/chatwork/file.rb
Class Method Summary collapse
-
.find(room_id:, file_id:, create_download_url: nil) ⇒ Hashie::Mash
Get information about the specified file.
-
.get(room_id:, account_id:) ⇒ Array<Hashie::Mash>
Get the list of files associated with the specified chat.
Class Method Details
.find(room_id:, file_id:, create_download_url: nil) ⇒ Hashie::Mash
Get information about the specified file
59 60 61 |
# File 'lib/chatwork/file.rb', line 59 def self.find(room_id:, file_id:, create_download_url: nil) _get("/rooms/#{room_id}/files/#{file_id}", create_download_url: boolean_to_integer(create_download_url)) end |
.get(room_id:, account_id:) ⇒ Array<Hashie::Mash>
Get the list of files associated with the specified chat
30 31 32 |
# File 'lib/chatwork/file.rb', line 30 def self.get(room_id:, account_id:) _get("/rooms/#{room_id}/files", account_id: account_id) end |