Class: Extractula::ExtractedContent
- Inherits:
-
Object
- Object
- Extractula::ExtractedContent
- Defined in:
- lib/extractula/extracted_content.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#image_urls ⇒ Object
readonly
Returns the value of attribute image_urls.
-
#media_type ⇒ Object
readonly
Returns the value of attribute media_type.
-
#summary ⇒ Object
readonly
Returns the value of attribute summary.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#video_embed ⇒ Object
readonly
Returns the value of attribute video_embed.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ ExtractedContent
constructor
A new instance of ExtractedContent.
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
#content ⇒ Object (readonly)
Returns the value of attribute content.
2 3 4 |
# File 'lib/extractula/extracted_content.rb', line 2 def content @content end |
#image_urls ⇒ Object (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_type ⇒ Object (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 |
#summary ⇒ Object (readonly)
Returns the value of attribute summary.
2 3 4 |
# File 'lib/extractula/extracted_content.rb', line 2 def summary @summary end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
2 3 4 |
# File 'lib/extractula/extracted_content.rb', line 2 def title @title end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
2 3 4 |
# File 'lib/extractula/extracted_content.rb', line 2 def url @url end |
#video_embed ⇒ Object (readonly)
Returns the value of attribute video_embed.
2 3 4 |
# File 'lib/extractula/extracted_content.rb', line 2 def @video_embed end |