Class: Cufinder::LbsResponse
- Inherits:
-
BaseResponse
- Object
- BaseResponse
- Cufinder::LbsResponse
- 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 = {}) ⇒ LbsResponse
constructor
A new instance of LbsResponse.
Constructor Details
#initialize(data = {}) ⇒ LbsResponse
Returns a new instance of LbsResponse.
516 517 518 519 |
# File 'lib/cufinder_ruby/types.rb', line 516 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.
514 515 516 |
# File 'lib/cufinder_ruby/types.rb', line 514 def companies @companies end |