Class: WCC::Contentful::RichText::Unknown

Inherits:
Struct
  • Object
show all
Includes:
Node
Defined in:
lib/wcc/contentful/rich_text.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Node

#keys

Instance Attribute Details

#contentObject

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



180
181
182
# File 'lib/wcc/contentful/rich_text.rb', line 180

def content
  @content
end

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



180
181
182
# File 'lib/wcc/contentful/rich_text.rb', line 180

def data
  @data
end

#nodeTypeObject

Returns the value of attribute nodeType

Returns:

  • (Object)

    the current value of 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.

Returns:

  • (Boolean)


185
186
187
# File 'lib/wcc/contentful/rich_text.rb', line 185

def self.matches?(_node_type)
  true
end