Method: ZendeskAPI::Attachment#initialize
- Defined in:
- lib/zendesk_api/resources.rb
#initialize(client, attributes = {}) ⇒ Attachment
Returns a new instance of Attachment.
149 150 151 152 153 |
# File 'lib/zendesk_api/resources.rb', line 149 def initialize(client, attributes = {}) attributes[:file] ||= attributes.delete(:id) super end |