Class: Bateman::MetaAttribute
- Inherits:
-
Object
- Object
- Bateman::MetaAttribute
- Defined in:
- lib/bateman/meta_attribute.rb
Direct Known Subclasses
CardAttribute, CreatorAttribute, DescriptionAttribute, ImageAttribute, SiteAttribute, TitleAttribute
Instance Method Summary collapse
-
#initialize(html) ⇒ MetaAttribute
constructor
A new instance of MetaAttribute.
- #to_s ⇒ Object
Constructor Details
#initialize(html) ⇒ MetaAttribute
Returns a new instance of MetaAttribute.
3 4 5 6 |
# File 'lib/bateman/meta_attribute.rb', line 3 def initialize(html) @html = html @attribute = extract_attribute end |
Instance Method Details
#to_s ⇒ Object
8 9 10 |
# File 'lib/bateman/meta_attribute.rb', line 8 def to_s @attribute.to_s end |