Sha256: 47a2dbcbb7e84f3ebcfb4719d01d7907011a6ea4de02170fcee3fd4ab363f425
Contents?: true
Size: 563 Bytes
Versions: 1
Compression:
Stored size: 563 Bytes
Contents
# encoding: utf-8 module Crunchbase::Model class BoardMembersAndAdvisor < Crunchbase::Model::Job RESOURCE_LIST = 'board_members_and_advisors' attr_reader :person def initialize(json) super unless (relationships = json['relationships']).nil? set_relationships_object(Crunchbase::Model::Person, 'person', relationships['person']) end end def set_relationships_object(object_name, key, item) return unless item instance_variable_set "@#{key}", ( object_name.new(item) || nil ) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
crunchbase-ruby-library-0.0.1 | lib/crunchbase/model/board_members_and_advisor.rb |