Sha256: 1b7af81a33508b8300d9d03908e0704951febaf0744e07a00cefa12cf8a90d47
Contents?: true
Size: 532 Bytes
Versions: 1
Compression:
Stored size: 532 Bytes
Contents
# encoding: utf-8 module Crunchbase::Model class PastTeam < Crunchbase::Model::Job RESOURCE_LIST = 'past_team' 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/past_team.rb |