Sha256: bba72abc2bde48f25b458e8850158c289fc8fb7c29a535344336ae380693b4e7
Contents?: true
Size: 505 Bytes
Versions: 2
Compression:
Stored size: 505 Bytes
Contents
# encoding: utf-8 module Crunchbase class Relationship < CBEntity attr_reader :name, :type_name, :path, :permalink, :created_at, :updated_at def initialize(hash) @type_name = hash["type"] @name = hash["name"] @path = hash["path"] @permalink = hash["path"].split('/').last @created_at = hash['created_at'] && Time.at(hash['created_at']).utc @updated_at = hash['updated_at'] && Time.at(hash['updated_at']).utc end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
crunchbase_v2-0.0.2 | lib/crunchbase/relationship.rb |
crunchbase_v2-0.0.1 | lib/crunchbase/relationship.rb |