Class: Xberg::LinkMetadata

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLinkMetadata

Returns a new instance of LinkMetadata.

Parameters:

  • href: (String)
  • text: (String)
  • title: (String)
  • link_type: (enum_LinkType)
  • rel: (Array[String])
  • attributes: (Array[KeyValueAttribute])


1474
# File 'sig/types.rbs', line 1474

def initialize: (href: String, text: String, ?title: String, link_type: enum_LinkType, rel: Array[String], attributes: Array[KeyValueAttribute]) -> void

Instance Attribute Details

#attributesArray[KeyValueAttribute] (readonly)

Returns the value of attribute attributes.

Returns:



1472
1473
1474
# File 'sig/types.rbs', line 1472

def attributes
  @attributes
end

#hrefString (readonly)

Returns the value of attribute href.

Returns:

  • (String)


1467
1468
1469
# File 'sig/types.rbs', line 1467

def href
  @href
end

Returns the value of attribute link_type.

Returns:

  • (enum_LinkType)


1470
1471
1472
# File 'sig/types.rbs', line 1470

def link_type
  @link_type
end

#relArray[String] (readonly)

Returns the value of attribute rel.

Returns:

  • (Array[String])


1471
1472
1473
# File 'sig/types.rbs', line 1471

def rel
  @rel
end

#textString (readonly)

Returns the value of attribute text.

Returns:

  • (String)


1468
1469
1470
# File 'sig/types.rbs', line 1468

def text
  @text
end

#titleString? (readonly)

Returns the value of attribute title.

Returns:

  • (String, nil)


1469
1470
1471
# File 'sig/types.rbs', line 1469

def title
  @title
end