Sha256: d3d36cfac22be5f215eb10c9880c17a74b7eb67dd29932b39bb396fa3298ac15

Contents?: true

Size: 563 Bytes

Versions: 8

Compression:

Stored size: 563 Bytes

Contents

# encoding: utf-8

# https://api.crunchbase.com/v/2/#{classify}/#{permalink}/websites
# Type [organization, person]

module Crunchbase
  class Website < CBEntity

    RESOURCE_NAME = 'website'
    RESOURCE_LIST = 'websites'

    attr_reader :url, :type_name, :title, :created_at, :updated_at

    def initialize(json)
      @url            = json['url']
      @type_name      = json['type']
      @title          = json['title']
      @created_at     = Time.at(json['created_at']).utc
      @updated_at     = Time.at(json['updated_at']).utc
    end
    
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
crunchbase_v2-1.1.6 lib/crunchbase/website.rb
crunchbase_v2-1.1.5 lib/crunchbase/website.rb
crunchbase_v2-1.1.4 lib/crunchbase/website.rb
crunchbase_v2-1.1.3 lib/crunchbase/website.rb
crunchbase_v2-1.1.2 lib/crunchbase/website.rb
crunchbase_v2-1.1.1 lib/crunchbase/website.rb
crunchbase_v2-1.1.0 lib/crunchbase/website.rb
crunchbase_v2-1.0.0 lib/crunchbase/website.rb