Class: Crunchbase::Model::Degree

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

Constant Summary collapse

RESOURCE_LIST =
'degrees'.freeze

Instance Attribute Summary collapse

Attributes inherited from Entity

#type_name, #uuid

Instance Method Summary collapse

Methods inherited from Entity

#convert_date!, #date_keys, #fetch, #instance_multi_relationship_objects, #instance_relationships_object, #instance_timestamps, #one_to_many, #one_to_one, #parse_hash_items, #relationship_lists, #set_relationships_object, #set_variables, #setup_relationships_data!, #special_relationship, #verify_item?

Methods included from Request::Client

#api, #array_from_list, #funding_rounds_lists, #get, #kclass_name, #list, #organization_lists, #parsing_from_list, #person_lists, #total_items_from_list

Constructor Details

#initialize(json) ⇒ Degree

Returns a new instance of Degree.



13
14
15
16
17
18
19
# File 'lib/crunchbase/model/degree.rb', line 13

def initialize(json)
  super

  return if (relationships = json['relationships']).nil?

  instance_relationships_object(Crunchbase::Model::School, 'school', relationships['school'])
end

Instance Attribute Details

#completed_onObject (readonly)

Returns the value of attribute completed_on.



7
8
9
# File 'lib/crunchbase/model/degree.rb', line 7

def completed_on
  @completed_on
end

#completed_on_trust_codeObject (readonly)

Returns the value of attribute completed_on_trust_code.



7
8
9
# File 'lib/crunchbase/model/degree.rb', line 7

def completed_on_trust_code
  @completed_on_trust_code
end

#created_atObject (readonly)

Returns the value of attribute created_at.



7
8
9
# File 'lib/crunchbase/model/degree.rb', line 7

def created_at
  @created_at
end

#degree_subjectObject (readonly)

Returns the value of attribute degree_subject.



7
8
9
# File 'lib/crunchbase/model/degree.rb', line 7

def degree_subject
  @degree_subject
end

#degree_type_nameObject (readonly)

Returns the value of attribute degree_type_name.



7
8
9
# File 'lib/crunchbase/model/degree.rb', line 7

def degree_type_name
  @degree_type_name
end

#is_completedObject (readonly)

Returns the value of attribute is_completed.



7
8
9
# File 'lib/crunchbase/model/degree.rb', line 7

def is_completed
  @is_completed
end

#schoolObject (readonly)

Returns the value of attribute school.



11
12
13
# File 'lib/crunchbase/model/degree.rb', line 11

def school
  @school
end

#started_onObject (readonly)

Returns the value of attribute started_on.



7
8
9
# File 'lib/crunchbase/model/degree.rb', line 7

def started_on
  @started_on
end

#started_on_trust_codeObject (readonly)

Returns the value of attribute started_on_trust_code.



7
8
9
# File 'lib/crunchbase/model/degree.rb', line 7

def started_on_trust_code
  @started_on_trust_code
end

#updated_atObject (readonly)

Returns the value of attribute updated_at.



7
8
9
# File 'lib/crunchbase/model/degree.rb', line 7

def updated_at
  @updated_at
end

Instance Method Details

#property_keysObject



21
22
23
24
25
26
27
# File 'lib/crunchbase/model/degree.rb', line 21

def property_keys
  %w(
    degree_type_name degree_subject started_on started_on_trust_code is_completed
    completed_on completed_on_trust_code
    created_at updated_at
  )
end