Class: TencentCloud::Mrs::V20200910::TimelineInformation

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20200910/models.rb

Overview

时间轴

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(timeline = nil, page = nil) ⇒ TimelineInformation

Returns a new instance of TimelineInformation.



10650
10651
10652
10653
# File 'lib/v20200910/models.rb', line 10650

def initialize(timeline=nil, page=nil)
  @Timeline = timeline
  @Page = page
end

Instance Attribute Details

#PageObject

Parameters:

  • Timeline:

    时间轴

  • Page:

    数据在原PDF文件中的第几页



10648
10649
10650
# File 'lib/v20200910/models.rb', line 10648

def Page
  @Page
end

#TimelineObject

Parameters:

  • Timeline:

    时间轴

  • Page:

    数据在原PDF文件中的第几页



10648
10649
10650
# File 'lib/v20200910/models.rb', line 10648

def Timeline
  @Timeline
end

Instance Method Details

#deserialize(params) ⇒ Object



10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
# File 'lib/v20200910/models.rb', line 10655

def deserialize(params)
  unless params['Timeline'].nil?
    @Timeline = []
    params['Timeline'].each do |i|
      timelineevent_tmp = TimelineEvent.new
      timelineevent_tmp.deserialize(i)
      @Timeline << timelineevent_tmp
    end
  end
  @Page = params['Page']
end