Class: WCC::Contentful::RichText::Unknown
- Inherits:
-
Struct
- Object
- Struct
- WCC::Contentful::RichText::Unknown
- 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
-
.matches?(_node_type) ⇒ Boolean
Unknown nodes are the catch all, so they always match anything that made it to the else case of the switch.
Methods included from Node
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content
180 181 182 |
# File 'lib/wcc/contentful/rich_text.rb', line 180 def content @content end |
#data ⇒ Object
Returns the value of attribute data
180 181 182 |
# File 'lib/wcc/contentful/rich_text.rb', line 180 def data @data end |
#nodeType ⇒ Object
Returns the value of attribute nodeType
180 181 182 |
# File 'lib/wcc/contentful/rich_text.rb', line 180 def nodeType @nodeType end |
Class Method Details
.matches?(_node_type) ⇒ Boolean
Unknown nodes are the catch all, so they always match anything that made it to the else case of the switch.
185 186 187 |
# File 'lib/wcc/contentful/rich_text.rb', line 185 def self.matches?(_node_type) true end |