Class: Crawlberg::ArticleMetadata

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeArticleMetadata

Returns a new instance of ArticleMetadata.

Parameters:

  • published_time: (String)
  • modified_time: (String)
  • author: (String)
  • section: (String)
  • tags: (Array[String])


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

def initialize: (?published_time: String, ?modified_time: String, ?author: String, ?section: String, ?tags: Array[String]) -> void

Instance Attribute Details

#authorString?

Returns the value of attribute author.

Returns:

  • (String, nil)


317
318
319
# File 'sig/types.rbs', line 317

def author
  @author
end

#modified_timeString?

Returns the value of attribute modified_time.

Returns:

  • (String, nil)


316
317
318
# File 'sig/types.rbs', line 316

def modified_time
  @modified_time
end

#published_timeString?

Returns the value of attribute published_time.

Returns:

  • (String, nil)


315
316
317
# File 'sig/types.rbs', line 315

def published_time
  @published_time
end

#sectionString?

Returns the value of attribute section.

Returns:

  • (String, nil)


318
319
320
# File 'sig/types.rbs', line 318

def section
  @section
end

#tagsArray[String]?

Returns the value of attribute tags.

Returns:

  • (Array[String], nil)


319
320
321
# File 'sig/types.rbs', line 319

def tags
  @tags
end