Method: Springnote::Attachment#source
- Defined in:
- lib/springnote/attachment.rb
#source ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/springnote/attachment.rb', line 5 def source http = Net::HTTP.new(Springnote::Configuration::SERVER_URL, 80) req = Net::HTTP::Get.new(element_path[0..-5]) req.basic_auth(Springnote::Base.site.user, Springnote::Base.site.password) response = http.request(req) response.body end |