Class: Crunchbase::Model::New

Inherits:
Entity
  • Object
show all
Defined in:
lib/crunchbase/model/new.rb

Constant Summary collapse

RESOURCE_LIST =
'news'

Instance Attribute Summary collapse

Attributes inherited from Entity

#type_name, #uuid

Instance Method Summary collapse

Methods inherited from Entity

array_from_list, #fetch, funding_rounds_lists, get, #initialize, list, organization_lists, parsing_from_list, person_lists, total_items_from_list

Constructor Details

This class inherits a constructor from Crunchbase::Model::Entity

Instance Attribute Details

#authorObject (readonly)

Returns the value of attribute author.



8
9
10
# File 'lib/crunchbase/model/new.rb', line 8

def author
  @author
end

#created_atObject (readonly)

Returns the value of attribute created_at.



8
9
10
# File 'lib/crunchbase/model/new.rb', line 8

def created_at
  @created_at
end

#posted_onObject (readonly)

Returns the value of attribute posted_on.



8
9
10
# File 'lib/crunchbase/model/new.rb', line 8

def posted_on
  @posted_on
end

#titleObject (readonly)

Returns the value of attribute title.



8
9
10
# File 'lib/crunchbase/model/new.rb', line 8

def title
  @title
end

#typeObject (readonly)

Returns the value of attribute type.



8
9
10
# File 'lib/crunchbase/model/new.rb', line 8

def type
  @type
end

#updated_atObject (readonly)

Returns the value of attribute updated_at.



8
9
10
# File 'lib/crunchbase/model/new.rb', line 8

def updated_at
  @updated_at
end

#urlObject (readonly)

Returns the value of attribute url.



8
9
10
# File 'lib/crunchbase/model/new.rb', line 8

def url
  @url
end

Instance Method Details

#date_keysObject



16
17
18
# File 'lib/crunchbase/model/new.rb', line 16

def date_keys
  %w[posted_on]
end

#property_keysObject



10
11
12
13
14
# File 'lib/crunchbase/model/new.rb', line 10

def property_keys
  %w[
    title author posted_on url created_at updated_at type
  ]
end