Class: YandexTracker::Objects::Attachment

Inherits:
Base
  • Object
show all
Defined in:
lib/yandex_tracker/objects/attachment.rb

Overview

Objects::Attachment

Instance Attribute Summary

Attributes inherited from Base

#client, #context, #data

Instance Method Summary collapse

Methods inherited from Base

#expand, #id, #initialize, #method_missing, #respond_to_missing?

Constructor Details

This class inherits a constructor from YandexTracker::Objects::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class YandexTracker::Objects::Base

Instance Method Details

#downloadObject



9
10
11
# File 'lib/yandex_tracker/objects/attachment.rb', line 9

def download
  resource.get(data["content"])
end

#thumbnailObject



13
14
15
# File 'lib/yandex_tracker/objects/attachment.rb', line 13

def thumbnail
  resource.get(data["thumbnail"])
end