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])


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

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)


308
309
310
# File 'sig/types.rbs', line 308

def author
  @author
end

#modified_timeString?

Returns the value of attribute modified_time.

Returns:

  • (String, nil)


307
308
309
# File 'sig/types.rbs', line 307

def modified_time
  @modified_time
end

#published_timeString?

Returns the value of attribute published_time.

Returns:

  • (String, nil)


306
307
308
# File 'sig/types.rbs', line 306

def published_time
  @published_time
end

#sectionString?

Returns the value of attribute section.

Returns:

  • (String, nil)


309
310
311
# File 'sig/types.rbs', line 309

def section
  @section
end

#tagsArray[String]?

Returns the value of attribute tags.

Returns:

  • (Array[String], nil)


310
311
312
# File 'sig/types.rbs', line 310

def tags
  @tags
end