Class: OpenapiContracts::PayloadParser::Entry
- Inherits:
- 
      Struct
      
        - Object
- Struct
- OpenapiContracts::PayloadParser::Entry
 
- Defined in:
- lib/openapi_contracts/payload_parser.rb
Instance Attribute Summary collapse
- 
  
    
      #matcher  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute matcher. 
- 
  
    
      #parser  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute parser. 
Instance Method Summary collapse
Instance Attribute Details
#matcher ⇒ Object
Returns the value of attribute matcher
| 11 12 13 | # File 'lib/openapi_contracts/payload_parser.rb', line 11 def matcher @matcher end | 
#parser ⇒ Object
Returns the value of attribute parser
| 11 12 13 | # File 'lib/openapi_contracts/payload_parser.rb', line 11 def parser @parser end | 
Instance Method Details
#call(raw) ⇒ Object
| 12 13 14 | # File 'lib/openapi_contracts/payload_parser.rb', line 12 def call(raw) parser.call(raw) end | 
#match?(media_type) ⇒ Boolean
| 16 17 18 | # File 'lib/openapi_contracts/payload_parser.rb', line 16 def match?(media_type) matcher == media_type || matcher.match?(media_type) end |