Class: ExampleSocialCard
- Inherits:
-
ApplicationSocialCard
- Object
- SocialConstruct::BaseCard
- ApplicationSocialCard
- ExampleSocialCard
- Defined in:
- lib/generators/social_construct/install/templates/example_social_card.rb
Instance Method Summary collapse
-
#initialize(title: "Hello World", subtitle: nil, background_color: "#1a1a1a") ⇒ ExampleSocialCard
constructor
A new instance of ExampleSocialCard.
Methods inherited from SocialConstruct::BaseCard
#height, #render, #to_png, #width
Constructor Details
#initialize(title: "Hello World", subtitle: nil, background_color: "#1a1a1a") ⇒ ExampleSocialCard
Returns a new instance of ExampleSocialCard.
2 3 4 5 6 |
# File 'lib/generators/social_construct/install/templates/example_social_card.rb', line 2 def initialize(title: "Hello World", subtitle: nil, background_color: "#1a1a1a") @title = title @subtitle = subtitle @background_color = background_color end |