Class: Wikiwiki::Attachment

Inherits:
Object
  • Object
show all
Defined in:
lib/wikiwiki/attachment.rb

Instance Attribute Summary collapse

Instance Attribute Details

#contentString (readonly)

Returns the binary file content (decoded from Base64).

Returns:

  • (String)

    the binary file content (decoded from Base64)



# File 'lib/wikiwiki/attachment.rb', line 36


#nameString (readonly)

Returns the attachment file name.

Returns:

  • (String)

    the attachment file name



# File 'lib/wikiwiki/attachment.rb', line 24


#page_nameString (readonly)

Returns the page name this attachment belongs to.

Returns:

  • (String)

    the page name this attachment belongs to



# File 'lib/wikiwiki/attachment.rb', line 21


#sizeInteger (readonly)

Returns the file size in bytes.

Returns:

  • (Integer)

    the file size in bytes



# File 'lib/wikiwiki/attachment.rb', line 27


#timeTime (readonly)

Returns the upload time.

Returns:

  • (Time)

    the upload time



# File 'lib/wikiwiki/attachment.rb', line 30


#typeString (readonly)

Returns the MIME type.

Returns:

  • (String)

    the MIME type



# File 'lib/wikiwiki/attachment.rb', line 33