Sha256: 24288b03796743d78315f78e8195b6f153321307c05e9b796863b0ba5f244c4a
Contents?: true
Size: 635 Bytes
Versions: 2
Compression:
Stored size: 635 Bytes
Contents
# encoding: utf-8 require 'date' module Crunchbase class Relationship < CBEntity attr_reader :name, :type_name, :path, :permalink, :created_at, :updated_at, :announced_on def initialize(hash) @type_name = hash["type"] @announced_on = hash["announced_on"] && DateTime.parse(hash["announced_on"]) @name = hash["name"] @path = hash["path"] @permalink = hash["path"] && 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.6 | lib/crunchbase/relationship.rb |
crunchbase_v2-0.0.5 | lib/crunchbase/relationship.rb |