Class: Postnhost::PublishedCoverImage

Inherits:
Object
  • Object
show all
Defined in:
app/models/postnhost/published_cover_image.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(article_id:, identifier:) ⇒ PublishedCoverImage

Returns a new instance of PublishedCoverImage.



5
6
7
8
# File 'app/models/postnhost/published_cover_image.rb', line 5

def initialize(article_id:, identifier:)
  @article_id = article_id
  @identifier = identifier.presence
end

Instance Attribute Details

#identifierObject (readonly)

Returns the value of attribute identifier.



3
4
5
# File 'app/models/postnhost/published_cover_image.rb', line 3

def identifier
  @identifier
end