File: computer.md

package info (click to toggle)
ruby-faker 2.21.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,076 kB
  • sloc: ruby: 19,088; makefile: 6
file content (17 lines) | stat: -rw-r--r-- 344 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Faker::Computer

Available since version 2.12.0.

```ruby
# A random computer platform
Faker::Computer.platform #=> "Linux"

# A random computer type
Faker::Computer.type #=> "server"

# A random computer OS
Faker::Computer.os #=> "RHEL 6.10"

# A random computer platform and OS combination.
Faker::Computer.stack #=> "Linux, RHEL 6.10"
```