Class: Cufinder::RelResponse
- Inherits:
-
BaseResponse
- Object
- BaseResponse
- Cufinder::RelResponse
- Defined in:
- lib/cufinder_ruby/types.rb
Instance Attribute Summary collapse
-
#person ⇒ Object
Returns the value of attribute person.
Attributes inherited from BaseResponse
#confidence_level, #credit_count, #meta_data, #query
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ RelResponse
constructor
A new instance of RelResponse.
Constructor Details
#initialize(data = {}) ⇒ RelResponse
Returns a new instance of RelResponse.
235 236 237 238 |
# File 'lib/cufinder_ruby/types.rb', line 235 def initialize(data = {}) super(data) @person = data["person"] ? RelPerson.new(data["person"]) : nil end |
Instance Attribute Details
#person ⇒ Object
Returns the value of attribute person.
233 234 235 |
# File 'lib/cufinder_ruby/types.rb', line 233 def person @person end |