Class: Cufinder::RelResponse

Inherits:
BaseResponse show all
Defined in:
lib/cufinder_ruby/types.rb

Instance Attribute Summary collapse

Attributes inherited from BaseResponse

#confidence_level, #credit_count, #meta_data, #query

Instance Method Summary collapse

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

#personObject

Returns the value of attribute person.



233
234
235
# File 'lib/cufinder_ruby/types.rb', line 233

def person
  @person
end