Class: Google::Apis::DfareportingV3_1::Flight
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::DfareportingV3_1::Flight
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - generated/google/apis/dfareporting_v3_1/classes.rb,
generated/google/apis/dfareporting_v3_1/representations.rb,
generated/google/apis/dfareporting_v3_1/representations.rb 
Overview
Flight
Instance Attribute Summary collapse
- 
  
    
      #end_date  ⇒ Date 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Inventory item flight end date.
 - 
  
    
      #rate_or_cost  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Rate or cost of this flight.
 - 
  
    
      #start_date  ⇒ Date 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Inventory item flight start date.
 - 
  
    
      #units  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Units of this flight.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Flight 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Flight.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Flight
Returns a new instance of Flight
      5903 5904 5905  | 
    
      # File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 5903 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#end_date ⇒ Date
Inventory item flight end date.
Corresponds to the JSON property endDate
      5886 5887 5888  | 
    
      # File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 5886 def end_date @end_date end  | 
  
#rate_or_cost ⇒ Fixnum
Rate or cost of this flight.
Corresponds to the JSON property rateOrCost
      5891 5892 5893  | 
    
      # File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 5891 def rate_or_cost @rate_or_cost end  | 
  
#start_date ⇒ Date
Inventory item flight start date.
Corresponds to the JSON property startDate
      5896 5897 5898  | 
    
      # File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 5896 def start_date @start_date end  | 
  
#units ⇒ Fixnum
Units of this flight.
Corresponds to the JSON property units
      5901 5902 5903  | 
    
      # File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 5901 def units @units end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      5908 5909 5910 5911 5912 5913  | 
    
      # File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 5908 def update!(**args) @end_date = args[:end_date] if args.key?(:end_date) @rate_or_cost = args[:rate_or_cost] if args.key?(:rate_or_cost) @start_date = args[:start_date] if args.key?(:start_date) @units = args[:units] if args.key?(:units) end  |