Class: Zendesk::Attachment
- Defined in:
- lib/zendesk/attachment.rb
Constant Summary
Constants included from Constants
Constants::PRIORITY, Constants::RESTRICTION, Constants::ROLE, Constants::STATUS, Constants::TICKET_TYPE, Constants::VIA
Instance Method Summary collapse
-
#initialize(path, filename = nil) ⇒ Attachment
constructor
A new instance of Attachment.
-
#save ⇒ Object
return token of attached file.
Methods inherited from Resource
Methods included from Properties
Constructor Details
#initialize(path, filename = nil) ⇒ Attachment
Returns a new instance of Attachment.
2 3 4 5 6 |
# File 'lib/zendesk/attachment.rb', line 2 def initialize(path, filename = nil) @path = path @filename = filename || File.basename(path) end |