Class: ServiceDetection

Inherits:
Object
  • Object
show all
Defined in:
app/models/service_detection.rb

Overview

Detect famous platforms base on the given URL.

Author:

  • guillaumeh

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url) ⇒ ServiceDetection

Initialize a new ServiceDetection instance

Parameters:

  • url (String)

    Service URL


13
14
15
16
# File 'app/models/service_detection.rb', line 13

def initialize(url)
  @url = url
  detect
end

Instance Attribute Details

#detected_serviceObject (readonly)

Returns the value of attribute detected_service


7
8
9
# File 'app/models/service_detection.rb', line 7

def detected_service
  @detected_service
end