Class: ExpressMailer::Button
- Inherits:
-
Object
- Object
- ExpressMailer::Button
- Defined in:
- lib/express_mailer/button.rb
Instance Attribute Summary collapse
-
#href ⇒ Object
Returns the value of attribute href.
-
#text ⇒ Object
Returns the value of attribute text.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Button
constructor
A new instance of Button.
Constructor Details
#initialize(options = {}) ⇒ Button
Returns a new instance of Button.
13 14 15 16 |
# File 'lib/express_mailer/button.rb', line 13 def initialize( = {}) @text = .fetch(:text) @href = .fetch(:href) end |
Instance Attribute Details
#href ⇒ Object
Returns the value of attribute href.
3 4 5 |
# File 'lib/express_mailer/button.rb', line 3 def href @href end |
#text ⇒ Object
Returns the value of attribute text.
3 4 5 |
# File 'lib/express_mailer/button.rb', line 3 def text @text end |
Class Method Details
.create(options) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/express_mailer/button.rb', line 5 def self.create() if new() else nil end end |