Class: Crunchbase::Model::Degree

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

Constant Summary collapse

RESOURCE_LIST =
'degrees'

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, list, organization_lists, parsing_from_list, person_lists, total_items_from_list

Constructor Details

#initialize(json) ⇒ Degree



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

def initialize(json)
  super

  unless (relationships = json['relationships']).nil?
    instance_relationships_object(Crunchbase::Model::School, 'school', relationships['school'])
  end
end

Instance Attribute Details

#completed_onObject (readonly)

Returns the value of attribute completed_on.



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

def completed_on
  @completed_on
end

#completed_on_trust_codeObject (readonly)

Returns the value of attribute completed_on_trust_code.



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

def completed_on_trust_code
  @completed_on_trust_code
end

#created_atObject (readonly)

Returns the value of attribute created_at.



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

def created_at
  @created_at
end

#degree_subjectObject (readonly)

Returns the value of attribute degree_subject.



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

def degree_subject
  @degree_subject
end

#degree_type_nameObject (readonly)

Returns the value of attribute degree_type_name.



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

def degree_type_name
  @degree_type_name
end

#is_completedObject (readonly)

Returns the value of attribute is_completed.



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

def is_completed
  @is_completed
end

#schoolObject (readonly)

Returns the value of attribute school.



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

def school
  @school
end

#started_onObject (readonly)

Returns the value of attribute started_on.



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

def started_on
  @started_on
end

#started_on_trust_codeObject (readonly)

Returns the value of attribute started_on_trust_code.



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

def started_on_trust_code
  @started_on_trust_code
end

#updated_atObject (readonly)

Returns the value of attribute updated_at.



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

def updated_at
  @updated_at
end

Instance Method Details

#property_keysObject



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

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