Class: TheCompaniesAPI::Generated::Models::Technology
- Inherits:
-
Object
- Object
- TheCompaniesAPI::Generated::Models::Technology
- Defined in:
- lib/thecompaniesapi/generated/models/technology.rb
Overview
A technology description from our platform.
Instance Attribute Summary collapse
-
#categories ⇒ Object
Categories.
-
#companies_count ⇒ Object
CompaniesCount.
-
#created_at ⇒ Object
CreatedAt.
-
#editor ⇒ String
Editor.
-
#free ⇒ Object
Free.
-
#id ⇒ Float
Id.
-
#name ⇒ String
Name.
-
#name_synonyms ⇒ Object
NameSynonyms.
-
#paid ⇒ Object
Paid.
-
#slug ⇒ String
Slug.
-
#updated_at ⇒ Object
UpdatedAt.
-
#usage_count ⇒ Object
UsageCount.
-
#website_url ⇒ Object
WebsiteUrl.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ Technology
constructor
Initialize a new Technology.
-
#to_hash ⇒ Hash
(also: #to_h)
Convert to hash.
Constructor Details
#initialize(data = {}) ⇒ Technology
Initialize a new Technology
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/thecompaniesapi/generated/models/technology.rb', line 54 def initialize(data = {}) @categories = data['categories'] @companies_count = data['companiesCount'] @created_at = data['createdAt'] @editor = data['editor'] @free = data['free'] @id = data['id'] @name = data['name'] @name_synonyms = data['nameSynonyms'] @paid = data['paid'] @slug = data['slug'] @updated_at = data['updatedAt'] @usage_count = data['usageCount'] @website_url = data['websiteUrl'] end |
Instance Attribute Details
#categories ⇒ Object
Returns categories.
12 13 14 |
# File 'lib/thecompaniesapi/generated/models/technology.rb', line 12 def categories @categories end |
#companies_count ⇒ Object
Returns companiesCount.
15 16 17 |
# File 'lib/thecompaniesapi/generated/models/technology.rb', line 15 def companies_count @companies_count end |
#created_at ⇒ Object
Returns createdAt.
18 19 20 |
# File 'lib/thecompaniesapi/generated/models/technology.rb', line 18 def created_at @created_at end |
#editor ⇒ String
Returns editor.
21 22 23 |
# File 'lib/thecompaniesapi/generated/models/technology.rb', line 21 def editor @editor end |
#free ⇒ Object
Returns free.
24 25 26 |
# File 'lib/thecompaniesapi/generated/models/technology.rb', line 24 def free @free end |
#id ⇒ Float
Returns id.
27 28 29 |
# File 'lib/thecompaniesapi/generated/models/technology.rb', line 27 def id @id end |
#name ⇒ String
Returns name.
30 31 32 |
# File 'lib/thecompaniesapi/generated/models/technology.rb', line 30 def name @name end |
#name_synonyms ⇒ Object
Returns nameSynonyms.
33 34 35 |
# File 'lib/thecompaniesapi/generated/models/technology.rb', line 33 def name_synonyms @name_synonyms end |
#paid ⇒ Object
Returns paid.
36 37 38 |
# File 'lib/thecompaniesapi/generated/models/technology.rb', line 36 def paid @paid end |
#slug ⇒ String
Returns slug.
39 40 41 |
# File 'lib/thecompaniesapi/generated/models/technology.rb', line 39 def slug @slug end |
#updated_at ⇒ Object
Returns updatedAt.
42 43 44 |
# File 'lib/thecompaniesapi/generated/models/technology.rb', line 42 def updated_at @updated_at end |
#usage_count ⇒ Object
Returns usageCount.
45 46 47 |
# File 'lib/thecompaniesapi/generated/models/technology.rb', line 45 def usage_count @usage_count end |
#website_url ⇒ Object
Returns websiteUrl.
48 49 50 |
# File 'lib/thecompaniesapi/generated/models/technology.rb', line 48 def website_url @website_url end |
Instance Method Details
#to_hash ⇒ Hash Also known as: to_h
Convert to hash
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
# File 'lib/thecompaniesapi/generated/models/technology.rb', line 74 def to_hash { 'categories' => @categories, 'companiesCount' => @companies_count, 'createdAt' => @created_at, 'editor' => @editor, 'free' => @free, 'id' => @id, 'name' => @name, 'nameSynonyms' => @name_synonyms, 'paid' => @paid, 'slug' => @slug, 'updatedAt' => @updated_at, 'usageCount' => @usage_count, 'websiteUrl' => @website_url, } end |