Class: Dependabot::Nuget::PropertyDetails
- Inherits:
 - 
      Object
      
        
- Object
 - Dependabot::Nuget::PropertyDetails
 
 
- Extended by:
 - T::Sig
 
- Defined in:
 - lib/dependabot/nuget/discovery/property_details.rb
 
Instance Attribute Summary collapse
- 
  
    
      #name  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute name.
 - 
  
    
      #source_file_path  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute source_file_path.
 - 
  
    
      #value  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute value.
 
Class Method Summary collapse
Instance Method Summary collapse
- 
  
    
      #initialize(name:, value:, source_file_path:)  ⇒ PropertyDetails 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of PropertyDetails.
 
Constructor Details
#initialize(name:, value:, source_file_path:) ⇒ PropertyDetails
Returns a new instance of PropertyDetails.
      27 28 29 30 31  | 
    
      # File 'lib/dependabot/nuget/discovery/property_details.rb', line 27 def initialize(name:, value:, source_file_path:) @name = name @value = value @source_file_path = source_file_path end  | 
  
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
      34 35 36  | 
    
      # File 'lib/dependabot/nuget/discovery/property_details.rb', line 34 def name @name end  | 
  
#source_file_path ⇒ Object (readonly)
Returns the value of attribute source_file_path.
      40 41 42  | 
    
      # File 'lib/dependabot/nuget/discovery/property_details.rb', line 40 def source_file_path @source_file_path end  | 
  
#value ⇒ Object (readonly)
Returns the value of attribute value.
      37 38 39  | 
    
      # File 'lib/dependabot/nuget/discovery/property_details.rb', line 37 def value @value end  | 
  
Class Method Details
.from_json(json) ⇒ Object
      12 13 14 15 16 17 18 19 20  | 
    
      # File 'lib/dependabot/nuget/discovery/property_details.rb', line 12 def self.from_json(json) name = T.let(json.fetch("Name"), String) value = T.let(json.fetch("Value"), String) source_file_path = T.let(json.fetch("SourceFilePath"), String) PropertyDetails.new(name: name, value: value, source_file_path: source_file_path) end  |