Class: TencentCloud::Billing::V20180709::AnalyseDetail
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Billing::V20180709::AnalyseDetail
- Defined in:
- lib/v20180709/models.rb
Overview
成本分析数据复杂类型
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, total = nil, timedetail = nil) ⇒ AnalyseDetail
constructor
A new instance of AnalyseDetail.
Constructor Details
#initialize(name = nil, total = nil, timedetail = nil) ⇒ AnalyseDetail
Returns a new instance of AnalyseDetail.
1913 1914 1915 1916 1917 |
# File 'lib/v20180709/models.rb', line 1913 def initialize(name=nil, total=nil, timedetail=nil) @Name = name @Total = total @TimeDetail = timedetail end |
Instance Attribute Details
#Name ⇒ Object
1911 1912 1913 |
# File 'lib/v20180709/models.rb', line 1911 def Name @Name end |
#TimeDetail ⇒ Object
1911 1912 1913 |
# File 'lib/v20180709/models.rb', line 1911 def TimeDetail @TimeDetail end |
#Total ⇒ Object
1911 1912 1913 |
# File 'lib/v20180709/models.rb', line 1911 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 |
# File 'lib/v20180709/models.rb', line 1919 def deserialize(params) @Name = params['Name'] @Total = params['Total'] unless params['TimeDetail'].nil? @TimeDetail = [] params['TimeDetail'].each do |i| analysetimedetail_tmp = AnalyseTimeDetail.new analysetimedetail_tmp.deserialize(i) @TimeDetail << analysetimedetail_tmp end end end |