Class: WCC::Contentful::RichText::Hyperlink
- Inherits:
-
Struct
- Object
- Struct
- WCC::Contentful::RichText::Hyperlink
- Includes:
- Node
- Defined in:
- lib/wcc/contentful/rich_text.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#data ⇒ Object
Returns the value of attribute data.
-
#nodeType ⇒ Object
Returns the value of attribute nodeType.
Class Method Summary collapse
Methods included from Node
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content
171 172 173 |
# File 'lib/wcc/contentful/rich_text.rb', line 171 def content @content end |
#data ⇒ Object
Returns the value of attribute data
171 172 173 |
# File 'lib/wcc/contentful/rich_text.rb', line 171 def data @data end |
#nodeType ⇒ Object
Returns the value of attribute nodeType
171 172 173 |
# File 'lib/wcc/contentful/rich_text.rb', line 171 def nodeType @nodeType end |
Class Method Details
.matches?(node_type) ⇒ Boolean
175 176 177 |
# File 'lib/wcc/contentful/rich_text.rb', line 175 def self.matches?(node_type) node_type =~ /(\w+-)?hyperlink/ end |