Method: TecDoc::Article.search
- Defined in:
- lib/tec_doc/article.rb
.search(options = {}) ⇒ Array<TecDoc::Article>
Find article by all number types and brand number and generic article id.
19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/tec_doc/article.rb', line 19 def self.search( = {}) = { :country => TecDoc.client.country, :lang => I18n.locale.to_s, :number_type => 10, :search_exact => 1, :sort_type => 1 }.merge() TecDoc.client.request(:get_article_direct_search_all_numbers2, ).map do |attributes| new(attributes, ) end end |