Class: Reactor::Link::External

Inherits:
Object
  • Object
show all
Defined in:
lib/reactor/link/external.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(_url) ⇒ External

Returns a new instance of External.

Raises:

  • (TypeError)


14
15
16
# File 'lib/reactor/link/external.rb', line 14

def initialize(_url)
  raise TypeError, "#{self.class.name} is deprecated!"
end

Instance Attribute Details

#urlObject

Returns the value of attribute url.



4
5
6
# File 'lib/reactor/link/external.rb', line 4

def url
  @url
end

Instance Method Details

#external?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/reactor/link/external.rb', line 6

def external?
  true
end

#idObject



18
19
20
# File 'lib/reactor/link/external.rb', line 18

def id
  nil
end

#internal?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/reactor/link/external.rb', line 10

def internal?
  false
end