Class: WCC::Contentful::RichText::Hyperlink

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



171
172
173
# File 'lib/wcc/contentful/rich_text.rb', line 171

def content
  @content
end

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



171
172
173
# File 'lib/wcc/contentful/rich_text.rb', line 171

def data
  @data
end

#nodeTypeObject

Returns the value of attribute nodeType

Returns:

  • (Object)

    the current value of nodeType



171
172
173
# File 'lib/wcc/contentful/rich_text.rb', line 171

def nodeType
  @nodeType
end

Class Method Details

.matches?(node_type) ⇒ Boolean

Returns:

  • (Boolean)


175
176
177
# File 'lib/wcc/contentful/rich_text.rb', line 175

def self.matches?(node_type)
  node_type =~ /(\w+-)?hyperlink/
end