Class: TheCompaniesAPI::Generated::Models::Technology

Inherits:
Object
  • Object
show all
Defined in:
lib/thecompaniesapi/generated/models/technology.rb

Overview

A technology description from our platform.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = {}) ⇒ Technology

Initialize a new Technology

Parameters:

  • data (Hash) (defaults to: {})

    Initial data



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

#categoriesObject

Returns categories.

Returns:

  • (Object)

    categories



12
13
14
# File 'lib/thecompaniesapi/generated/models/technology.rb', line 12

def categories
  @categories
end

#companies_countObject

Returns companiesCount.

Returns:

  • (Object)

    companiesCount



15
16
17
# File 'lib/thecompaniesapi/generated/models/technology.rb', line 15

def companies_count
  @companies_count
end

#created_atObject

Returns createdAt.

Returns:

  • (Object)

    createdAt



18
19
20
# File 'lib/thecompaniesapi/generated/models/technology.rb', line 18

def created_at
  @created_at
end

#editorString

Returns editor.

Returns:

  • (String)

    editor



21
22
23
# File 'lib/thecompaniesapi/generated/models/technology.rb', line 21

def editor
  @editor
end

#freeObject

Returns free.

Returns:

  • (Object)

    free



24
25
26
# File 'lib/thecompaniesapi/generated/models/technology.rb', line 24

def free
  @free
end

#idFloat

Returns id.

Returns:

  • (Float)

    id



27
28
29
# File 'lib/thecompaniesapi/generated/models/technology.rb', line 27

def id
  @id
end

#nameString

Returns name.

Returns:

  • (String)

    name



30
31
32
# File 'lib/thecompaniesapi/generated/models/technology.rb', line 30

def name
  @name
end

#name_synonymsObject

Returns nameSynonyms.

Returns:

  • (Object)

    nameSynonyms



33
34
35
# File 'lib/thecompaniesapi/generated/models/technology.rb', line 33

def name_synonyms
  @name_synonyms
end

Returns paid.

Returns:

  • (Object)

    paid



36
37
38
# File 'lib/thecompaniesapi/generated/models/technology.rb', line 36

def paid
  @paid
end

#slugString

Returns slug.

Returns:

  • (String)

    slug



39
40
41
# File 'lib/thecompaniesapi/generated/models/technology.rb', line 39

def slug
  @slug
end

#updated_atObject

Returns updatedAt.

Returns:

  • (Object)

    updatedAt



42
43
44
# File 'lib/thecompaniesapi/generated/models/technology.rb', line 42

def updated_at
  @updated_at
end

#usage_countObject

Returns usageCount.

Returns:

  • (Object)

    usageCount



45
46
47
# File 'lib/thecompaniesapi/generated/models/technology.rb', line 45

def usage_count
  @usage_count
end

#website_urlObject

Returns websiteUrl.

Returns:

  • (Object)

    websiteUrl



48
49
50
# File 'lib/thecompaniesapi/generated/models/technology.rb', line 48

def website_url
  @website_url
end

Instance Method Details

#to_hashHash Also known as: to_h

Convert to hash

Returns:

  • (Hash)

    Hash representation



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