Class: Mailosaur::Models::Link

Inherits:
BaseModel show all
Defined in:
lib/Mailosaur/models/link.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#to_json

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

#hrefString

Returns:

  • (String)


10
11
12
# File 'lib/Mailosaur/models/link.rb', line 10

def href
  @href
end

#textString

Returns:

  • (String)


13
14
15
# File 'lib/Mailosaur/models/link.rb', line 13

def text
  @text
end