Class: MoexIssClient::HistoryValidator
- Inherits:
-
Object
- Object
- MoexIssClient::HistoryValidator
- Defined in:
- lib/moex_iss_client/history_validator.rb
Instance Method Summary collapse
Instance Method Details
#validate(history) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/moex_iss_client/history_validator.rb', line 7 def validate(history) parsed_history = REXML::Document.new(history) raise NoHistoryError, 'Invalid or empty security history' if valid?(parsed_history) parsed_history end |