Class: Crunchbase::Model::Degree
- Defined in:
- lib/crunchbase/model/degree.rb
Constant Summary collapse
- RESOURCE_LIST =
'degrees'.freeze
Instance Attribute Summary collapse
-
#completed_on ⇒ Object
readonly
Returns the value of attribute completed_on.
-
#completed_on_trust_code ⇒ Object
readonly
Returns the value of attribute completed_on_trust_code.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#degree_subject ⇒ Object
readonly
Returns the value of attribute degree_subject.
-
#degree_type_name ⇒ Object
readonly
Returns the value of attribute degree_type_name.
-
#is_completed ⇒ Object
readonly
Returns the value of attribute is_completed.
-
#school ⇒ Object
readonly
Returns the value of attribute school.
-
#started_on ⇒ Object
readonly
Returns the value of attribute started_on.
-
#started_on_trust_code ⇒ Object
readonly
Returns the value of attribute started_on_trust_code.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
Attributes inherited from Entity
Instance Method Summary collapse
-
#initialize(json) ⇒ Degree
constructor
A new instance of Degree.
- #property_keys ⇒ Object
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_on ⇒ Object (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_code ⇒ Object (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_at ⇒ Object (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_subject ⇒ Object (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_name ⇒ Object (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_completed ⇒ Object (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 |
#school ⇒ Object (readonly)
Returns the value of attribute school.
11 12 13 |
# File 'lib/crunchbase/model/degree.rb', line 11 def school @school end |
#started_on ⇒ Object (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_code ⇒ Object (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_at ⇒ Object (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_keys ⇒ Object
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 |