Class: Crawlberg::LinkInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLinkInfo

Returns a new instance of LinkInfo.

Parameters:

  • url: (String)
  • text: (String)
  • link_type: (LinkType)
  • rel: (String)
  • nofollow: (Boolean)


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

def initialize: (?url: String, ?text: String, ?link_type: LinkType, ?rel: String, ?nofollow: bool) -> void

Instance Attribute Details

Returns the value of attribute link_type.

Returns:



339
340
341
# File 'sig/types.rbs', line 339

def link_type
  @link_type
end

#nofollowBoolean (readonly)

Returns the value of attribute nofollow.

Returns:

  • (Boolean)


341
342
343
# File 'sig/types.rbs', line 341

def nofollow
  @nofollow
end

#relString? (readonly)

Returns the value of attribute rel.

Returns:

  • (String, nil)


340
341
342
# File 'sig/types.rbs', line 340

def rel
  @rel
end

#textString (readonly)

Returns the value of attribute text.

Returns:

  • (String)


338
339
340
# File 'sig/types.rbs', line 338

def text
  @text
end

#urlString (readonly)

Returns the value of attribute url.

Returns:

  • (String)


337
338
339
# File 'sig/types.rbs', line 337

def url
  @url
end