Sha256: 1251ccd0491e643156c6af429414e321989c50e6bd9c47a5195048a8213a81f1
Contents?: true
Size: 617 Bytes
Versions: 4
Compression:
Stored size: 617 Bytes
Contents
# encoding: utf-8 # https://api.crunchbase.com/v/2/organization/facebook/sub_organizations module Crunchbase class SubOrganization < CBEntity RESOURCE_LIST = 'sub_organizations' attr_reader :type_name, :name, :path, :permalink, :created_at, :updated_at def initialize(json) @type_name = json['type'] @name = json['name'] @path = json['path'] @permalink = json['path'] && json['path'].gsub('organization/', '') @created_at = Time.at(json['created_at']).utc @updated_at = Time.at(json['updated_at']).utc end end end
Version data entries
4 entries across 4 versions & 1 rubygems