Sha256: ce24c37ec8a244c49f967b40fb13d86d07d6aaa9fddd3833e2e9301161b53d50
Contents?: true
Size: 853 Bytes
Versions: 4
Compression:
Stored size: 853 Bytes
Contents
# encoding: utf-8 # https://api.crunchbase.com/v/2/person/#{permalink}/primary_affiliation?user_key=key module Crunchbase class PrimaryAffiliation < CBEntity RESOURCE_LIST = 'primary_affiliation' attr_reader :organization_name, :organization_path, :organization_permalink, :title, :started_on, :ended_on def initialize(json) @organization_name = json['organization_name'] @organization_permalink = (json['organization_path'] && json['organization_path'].gsub('organization/', '') || nil) @organization_path = json['organization_path'] @title = json['title'] @started_on = (json['started_on'] && json['started_on'].to_datetime.utc || nil) @ended_on = (json['ended_on'] && json['ended_on'].to_datetime.utc || nil) end end end
Version data entries
4 entries across 4 versions & 1 rubygems