Class: Cufinder::CseResponse
- Inherits:
-
BaseResponse
- Object
- BaseResponse
- Cufinder::CseResponse
- Defined in:
- lib/cufinder_ruby/types.rb
Instance Attribute Summary collapse
-
#companies ⇒ Object
Returns the value of attribute companies.
Attributes inherited from BaseResponse
#confidence_level, #credit_count, #meta_data, #query
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ CseResponse
constructor
A new instance of CseResponse.
Constructor Details
#initialize(data = {}) ⇒ CseResponse
Returns a new instance of CseResponse.
498 499 500 501 |
# File 'lib/cufinder_ruby/types.rb', line 498 def initialize(data = {}) super(data) @companies = (data["companies"] || []).map { |c| Company.new(c) } end |
Instance Attribute Details
#companies ⇒ Object
Returns the value of attribute companies.
496 497 498 |
# File 'lib/cufinder_ruby/types.rb', line 496 def companies @companies end |