Sha256: 3bc3a312bb641828d5ebf83c147f20ced5566d3b5daf4d27c3cf7dc10718f015

Contents?: true

Size: 310 Bytes

Versions: 2

Compression:

Stored size: 310 Bytes

Contents

module FansWatch 
# Attached URL to Posting 
  class Attachment 
	  attr_reader :description, :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

2 entries across 2 versions & 1 rubygems

Version Path
fanswatch-0.1.1 lib/fanswatch/attachment.rb
fanswatch-0.1.0 lib/fanswatch/attachment.rb