Sha256: 79bab9550f43da9e730d4f37384a438e5ff188719a3199b31869015ce9b50dc7

Contents?: true

Size: 644 Bytes

Versions: 2

Compression:

Stored size: 644 Bytes

Contents

# encoding: utf-8

# http://api.crunchbase.com/v/2/organization/facebook/news

module Crunchbase
  class NewItem < CBEntity

    RESOURCE_LIST = 'news'

    attr_reader :type_name, :url, :author, :posted_on, :type, :title, :created_at, 
                :updated_at
                
    def initialize(json)
      @type_name      = json['type']
      @url            = json['url']
      @author         = json['author']
      @posted_on      = json['posted_on'] && DateTime.parse(json['posted_on'])
      @title          = json['title']
      @created_at     = json['created_at']
      @updated_at     = json['updated_at']
    end
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
crunchbase_v2-0.0.8 lib/crunchbase/new_item.rb
crunchbase_v2-0.0.7 lib/crunchbase/new_item.rb