Class: JIRA::AttachmentMetadata

Inherits:
NamedEntity show all
Defined in:
lib/jiraSOAP/entities/attachment_metadata.rb

Overview

Only contains the metadata for an attachment. The URI for an attachment appears to be of the form “JIRAService.endpoint_url/secure/attachment/DynamicEntity#id/#file_name

Instance Attribute Summary collapse

Attributes inherited from NamedEntity

#name

Attributes inherited from DynamicEntity

#id

Method Summary

Methods inherited from Entity

add_attributes, #initialize_with_xml, new_with_xml

Instance Attribute Details

#authorString

Returns:

  • (String)


14
15
16
# File 'lib/jiraSOAP/entities/attachment_metadata.rb', line 14

def author
  @author
end

#create_timeTime

Returns:

  • (Time)


17
18
19
# File 'lib/jiraSOAP/entities/attachment_metadata.rb', line 17

def create_time
  @create_time
end

#file_nameString

Returns:

  • (String)


20
21
22
# File 'lib/jiraSOAP/entities/attachment_metadata.rb', line 20

def file_name
  @file_name
end

#file_sizeFixnum

Returns measured in bytes.

Returns:

  • (Fixnum)

    measured in bytes



23
24
25
# File 'lib/jiraSOAP/entities/attachment_metadata.rb', line 23

def file_size
  @file_size
end

#mime_typeString

Returns:

  • (String)


26
27
28
# File 'lib/jiraSOAP/entities/attachment_metadata.rb', line 26

def mime_type
  @mime_type
end