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)


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

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:



252
253
254
# File 'sig/types.rbs', line 252

def link_type
  @link_type
end

#nofollowBoolean?

Returns the value of attribute nofollow.

Returns:

  • (Boolean, nil)


254
255
256
# File 'sig/types.rbs', line 254

def nofollow
  @nofollow
end

#relString?

Returns the value of attribute rel.

Returns:

  • (String, nil)


253
254
255
# File 'sig/types.rbs', line 253

def rel
  @rel
end

#textString?

Returns the value of attribute text.

Returns:

  • (String, nil)


251
252
253
# File 'sig/types.rbs', line 251

def text
  @text
end

#urlString?

Returns the value of attribute url.

Returns:

  • (String, nil)


250
251
252
# File 'sig/types.rbs', line 250

def url
  @url
end