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


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

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

Instance Attribute Details

#authorString? (readonly)

Returns the value of attribute author.

Returns:

  • (String, nil)


25
26
27
# File 'sig/types.rbs', line 25

def author
  @author
end

#modified_timeString? (readonly)

Returns the value of attribute modified_time.

Returns:

  • (String, nil)


24
25
26
# File 'sig/types.rbs', line 24

def modified_time
  @modified_time
end

#published_timeString? (readonly)

Returns the value of attribute published_time.

Returns:

  • (String, nil)


23
24
25
# File 'sig/types.rbs', line 23

def published_time
  @published_time
end

#sectionString? (readonly)

Returns the value of attribute section.

Returns:

  • (String, nil)


26
27
28
# File 'sig/types.rbs', line 26

def section
  @section
end

#tagsArray[String] (readonly)

Returns the value of attribute tags.

Returns:

  • (Array[String])


27
28
29
# File 'sig/types.rbs', line 27

def tags
  @tags
end