Sha256: cc7435b1e908cd583b14f65d951f1081fd12cda65119a715088f1837125fb270
Contents?: true
Size: 330 Bytes
Versions: 3
Compression:
Stored size: 330 Bytes
Contents
module FansWatch # Attached URL to Posting class Attachment attr_reader :description, :url, :title, :image_url def initialize(data) return unless data @description = data['description'] @url = data['url'] @title = data['title'] @image_url = data['media']['image']['src'] end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fanswatch-0.1.4 | lib/fanswatch/attachment.rb |
fanswatch-0.1.3 | lib/fanswatch/attachment.rb |
fanswatch-0.1.2 | lib/fanswatch/attachment.rb |