Class: Trello::TFaraday::TInternet

Inherits:
Object
  • Object
show all
Defined in:
lib/trello/net/faraday.rb

Class Method Summary collapse

Class Method Details

.execute(request) ⇒ Object



12
13
14
# File 'lib/trello/net/faraday.rb', line 12

def execute(request)
  try_execute request
end

.multipart_file(file) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/trello/net/faraday.rb', line 16

def multipart_file(file)
  Faraday::Multipart::FilePart.new(
    file,
    content_type(file),
    filename(file)
  )
end