class Notebook::Attachment

Attributes

file[R]

Public Class Methods

new(file) click to toggle source
# File lib/notebook/attachment.rb, line 5
def initialize(file)
  @file = file
end

Public Instance Methods

delete() click to toggle source
# File lib/notebook/attachment.rb, line 9
def delete
  adapter.delete
end
upload() click to toggle source
# File lib/notebook/attachment.rb, line 13
def upload
  adapter.upload
end
url() click to toggle source
# File lib/notebook/attachment.rb, line 17
def url
  adapter.url
end

Private Instance Methods

adapter() click to toggle source
# File lib/notebook/attachment.rb, line 23
def adapter
  Notebook.adapter.new(self)
end