Class: ZammadAPI::Resources::TicketArticle

Inherits:
Base
  • Object
show all
Defined in:
lib/zammad_api/resources/ticket_article.rb

Instance Attribute Summary

Attributes inherited from Base

#attributes, #changes, #new_instance, #url

Instance Method Summary collapse

Methods inherited from Base

all, #changed?, create, #destroy, destroy, find, get_url, #initialize, #method_missing, #new_record?, #save, search, url

Constructor Details

This class inherits a constructor from ZammadAPI::Resources::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ZammadAPI::Resources::Base

Instance Method Details

#attachmentsObject



4
5
6
7
8
9
10
# File 'lib/zammad_api/resources/ticket_article.rb', line 4

def attachments
  @attributes[:attachments].collect { |raw|
    raw[:ticket_id]  = @attributes[:ticket_id]
    raw[:article_id] = @attributes[:id]
    ZammadAPI::Resources::TicketArticleAttachment.new(@transport, raw)
  }
end