Class: ClickClient::FX::SettleResult

Inherits:
Base
  • Object
show all
Defined in:
lib/clickclient/fx.rb

Overview

決済注文結果

定義済みの属性の他に、レスポンスXMLの要素名、属性名でも値にアクセスできます。 レスポンスXMLについては、クリック証券提供のドキュメントを参照ください。

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#eql?, #hash, #method_missing, #to_s

Constructor Details

#initialize(item) ⇒ SettleResult

コンストラクタ

item

結果要素



809
810
811
812
813
814
815
816
817
818
819
820
# File 'lib/clickclient/fx.rb', line 809

def initialize( item )
  super(item)
  str = item.text( "./chumonBango")
  @settlement_order_no = str != nil ? str.to_i : nil
  str = item.text( "./kessaiTategyokuBango" )
  @open_interest_no = str != nil ? str.to_i : nil

  str = item.text( "./sashineChumonBango" )
  @limit_settlement_order_no = str != nil ? str.to_i : nil
  str = item.text( "./gyakusashiChumonBango" )
  @stop_settlement_order_no = str != nil ? str.to_i : nil
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ClickClient::Base

Instance Attribute Details

#limit_settlement_order_noObject

決済指値注文番号(OCO取引のみ)



826
827
828
# File 'lib/clickclient/fx.rb', line 826

def limit_settlement_order_no
  @limit_settlement_order_no
end

#open_interest_noObject

建玉番号



824
825
826
# File 'lib/clickclient/fx.rb', line 824

def open_interest_no
  @open_interest_no
end

#settlement_order_noObject

決済注文番号



822
823
824
# File 'lib/clickclient/fx.rb', line 822

def settlement_order_no
  @settlement_order_no
end

#stop_settlement_order_noObject

決済逆指値注文番号(OCO取引のみ)



828
829
830
# File 'lib/clickclient/fx.rb', line 828

def stop_settlement_order_no
  @stop_settlement_order_no
end