Class: Google::Cloud::Vision::Annotation::Web::Page
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Cloud::Vision::Annotation::Web::Page
 
 
- Defined in:
 - lib/google/cloud/vision/annotation/web.rb
 
Overview
Instance Method Summary collapse
- 
  
    
      #score  ⇒ Float 
    
    
  
  
  
  
  
  
  
  
  
    
Overall relevancy score for the web page.
 - 
  
    
      #to_a  ⇒ Array 
    
    
  
  
  
  
  
  
  
  
  
    
Returns the object's property values as an array.
 - 
  
    
      #to_h  ⇒ Hash 
    
    
  
  
  
  
  
  
  
  
  
    
Converts object to a hash.
 - 
  
    
      #url  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    
The result web page URL.
 
Instance Method Details
#score ⇒ Float
Overall relevancy score for the web page. Not normalized and not comparable across different image queries.
      377 378 379  | 
    
      # File 'lib/google/cloud/vision/annotation/web.rb', line 377 def score @grpc.score end  | 
  
#to_a ⇒ Array
Returns the object's property values as an array.
      386 387 388  | 
    
      # File 'lib/google/cloud/vision/annotation/web.rb', line 386 def to_a [url, score] end  | 
  
#to_h ⇒ Hash
Converts object to a hash. All keys will be symbolized.
      395 396 397  | 
    
      # File 'lib/google/cloud/vision/annotation/web.rb', line 395 def to_h { url: url, score: score } end  | 
  
#url ⇒ String
The result web page URL.
      367 368 369  | 
    
      # File 'lib/google/cloud/vision/annotation/web.rb', line 367 def url @grpc.url end  |