Class: Puree::Model::File

Inherits:
Structure show all
Defined in:
lib/puree/model/file.rb

Overview

Description of a file.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Structure

#data?

Instance Attribute Details

#licensePuree::Model::CopyrightLicense?



21
22
23
# File 'lib/puree/model/file.rb', line 21

def license
  @license
end

#mimeString?

Returns:

  • (String, nil)


12
13
14
# File 'lib/puree/model/file.rb', line 12

def mime
  @mime
end

#nameString?

Returns:

  • (String, nil)


9
10
11
# File 'lib/puree/model/file.rb', line 9

def name
  @name
end

#sizeInteger?

Returns:

  • (Integer, nil)


15
16
17
# File 'lib/puree/model/file.rb', line 15

def size
  @size
end

#urlString?

Returns:

  • (String, nil)


18
19
20
# File 'lib/puree/model/file.rb', line 18

def url
  @url
end