Method: Webmaster::Host#id

Defined in:
lib/webmaster/host.rb

#idInteger

Id of the host

Returns:

  • (Integer)


34
35
36
37
# File 'lib/webmaster/host.rb', line 34

def id
  return @id if defined?(@id)
  @id = self.href.match(/\/(\d+)\z/)[1].to_i
end