Class: Postnhost::PublishedCoverImage
- Inherits:
-
Object
- Object
- Postnhost::PublishedCoverImage
- Defined in:
- app/models/postnhost/published_cover_image.rb
Instance Attribute Summary collapse
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
Instance Method Summary collapse
-
#initialize(article_id:, identifier:) ⇒ PublishedCoverImage
constructor
A new instance of PublishedCoverImage.
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
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier.
3 4 5 |
# File 'app/models/postnhost/published_cover_image.rb', line 3 def identifier @identifier end |