Class: TencentCloud::Cpdp::V20190820::QueryExchangerateData

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

Overview

查询汇率数据

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rate = nil, sourcecurrency = nil, targetcurrency = nil, ratetime = nil, basecurrency = nil) ⇒ QueryExchangerateData

Returns a new instance of QueryExchangerateData.



16981
16982
16983
16984
16985
16986
16987
# File 'lib/v20190820/models.rb', line 16981

def initialize(rate=nil, sourcecurrency=nil, targetcurrency=nil, ratetime=nil, basecurrency=nil)
  @Rate = rate
  @SourceCurrency = sourcecurrency
  @TargetCurrency = targetcurrency
  @RateTime = ratetime
  @BaseCurrency = basecurrency
end

Instance Attribute Details

#BaseCurrencyObject

Parameters:

  • Rate:

    汇率

  • SourceCurrency:

    源币种

  • TargetCurrency:

    目的币种

  • RateTime:

    汇率时间

  • BaseCurrency:

    基准币种



16979
16980
16981
# File 'lib/v20190820/models.rb', line 16979

def BaseCurrency
  @BaseCurrency
end

#RateObject

Parameters:

  • Rate:

    汇率

  • SourceCurrency:

    源币种

  • TargetCurrency:

    目的币种

  • RateTime:

    汇率时间

  • BaseCurrency:

    基准币种



16979
16980
16981
# File 'lib/v20190820/models.rb', line 16979

def Rate
  @Rate
end

#RateTimeObject

Parameters:

  • Rate:

    汇率

  • SourceCurrency:

    源币种

  • TargetCurrency:

    目的币种

  • RateTime:

    汇率时间

  • BaseCurrency:

    基准币种



16979
16980
16981
# File 'lib/v20190820/models.rb', line 16979

def RateTime
  @RateTime
end

#SourceCurrencyObject

Parameters:

  • Rate:

    汇率

  • SourceCurrency:

    源币种

  • TargetCurrency:

    目的币种

  • RateTime:

    汇率时间

  • BaseCurrency:

    基准币种



16979
16980
16981
# File 'lib/v20190820/models.rb', line 16979

def SourceCurrency
  @SourceCurrency
end

#TargetCurrencyObject

Parameters:

  • Rate:

    汇率

  • SourceCurrency:

    源币种

  • TargetCurrency:

    目的币种

  • RateTime:

    汇率时间

  • BaseCurrency:

    基准币种



16979
16980
16981
# File 'lib/v20190820/models.rb', line 16979

def TargetCurrency
  @TargetCurrency
end

Instance Method Details

#deserialize(params) ⇒ Object



16989
16990
16991
16992
16993
16994
16995
# File 'lib/v20190820/models.rb', line 16989

def deserialize(params)
  @Rate = params['Rate']
  @SourceCurrency = params['SourceCurrency']
  @TargetCurrency = params['TargetCurrency']
  @RateTime = params['RateTime']
  @BaseCurrency = params['BaseCurrency']
end