Class: Cufinder::CefResponse
- Inherits:
-
BaseResponse
- Object
- BaseResponse
- Cufinder::CefResponse
- Defined in:
- lib/cufinder_ruby/types.rb
Instance Attribute Summary collapse
-
#employees ⇒ Object
Returns the value of attribute employees.
Attributes inherited from BaseResponse
#confidence_level, #credit_count, #meta_data, #query
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ CefResponse
constructor
A new instance of CefResponse.
Constructor Details
#initialize(data = {}) ⇒ CefResponse
Returns a new instance of CefResponse.
642 643 644 645 |
# File 'lib/cufinder_ruby/types.rb', line 642 def initialize(data = {}) super(data) @employees = (data["employees"] || []).map { |e| CefEmployee.new(e) } end |
Instance Attribute Details
#employees ⇒ Object
Returns the value of attribute employees.
640 641 642 |
# File 'lib/cufinder_ruby/types.rb', line 640 def employees @employees end |