Class: Extractula::ExtractedContent

Inherits:
Object
  • Object
show all
Defined in:
lib/extractula/extracted_content.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ ExtractedContent

Returns a new instance of ExtractedContent.



4
5
6
# File 'lib/extractula/extracted_content.rb', line 4

def initialize(attributes = {})
  attributes.each_pair {|k, v| instance_variable_set("@#{k}", v)}
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



2
3
4
# File 'lib/extractula/extracted_content.rb', line 2

def content
  @content
end

#image_urlsObject (readonly)

Returns the value of attribute image_urls.



2
3
4
# File 'lib/extractula/extracted_content.rb', line 2

def image_urls
  @image_urls
end

#media_typeObject (readonly)

Returns the value of attribute media_type.



2
3
4
# File 'lib/extractula/extracted_content.rb', line 2

def media_type
  @media_type
end

#summaryObject (readonly)

Returns the value of attribute summary.



2
3
4
# File 'lib/extractula/extracted_content.rb', line 2

def summary
  @summary
end

#titleObject (readonly)

Returns the value of attribute title.



2
3
4
# File 'lib/extractula/extracted_content.rb', line 2

def title
  @title
end

#urlObject (readonly)

Returns the value of attribute url.



2
3
4
# File 'lib/extractula/extracted_content.rb', line 2

def url
  @url
end

#video_embedObject (readonly)

Returns the value of attribute video_embed.



2
3
4
# File 'lib/extractula/extracted_content.rb', line 2

def video_embed
  @video_embed
end