class NewsletterReader::Link

Attributes

content[R]
href[R]

Public Class Methods

new(href:, content:) click to toggle source
# File lib/newsletter_reader/link.rb, line 5
def initialize(href:, content:)
  @href = href
  @content = content
end

Public Instance Methods

to_json(*args) click to toggle source
# File lib/newsletter_reader/link.rb, line 10
def to_json(*args)
  {
    href: href,
    content: content
  }.to_json(*args)
end