Class: Mailosaur::Models::Link
- Defined in:
- lib/Mailosaur/models/link.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ Link
constructor
A new instance of Link.
Methods inherited from BaseModel
Constructor Details
#initialize(data = {}) ⇒ Link
Returns a new instance of Link.
4 5 6 7 |
# File 'lib/Mailosaur/models/link.rb', line 4 def initialize(data = {}) @href = data['href'] @text = data['text'] end |
Instance Attribute Details
#href ⇒ String
10 11 12 |
# File 'lib/Mailosaur/models/link.rb', line 10 def href @href end |
#text ⇒ String
13 14 15 |
# File 'lib/Mailosaur/models/link.rb', line 13 def text @text end |