1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
[23] pry(main)> dalmore = IpAddress.find(2514)
=> #<IpAddress:0x0000556018532dc0
id: 2514,
user_id: 666,
affiliation: "cr",
domain: "os",
assigned_address: "10.0.0.146",
mac_address: "a0:36:9f:67:6f:60",
created_at: Sat, 26 May 2018 08:10:06 UTC +00:00,
updated_at: Sat, 26 May 2018 08:14:45 UTC +00:00,
vlan: 62>
[24] pry(main)> dalmore.user_id
=> 666
[25] pry(main)> dalmore.user_id = 35
=> 35
[26] pry(main)> dalmore
=> #<IpAddress:0x0000556018532dc0
id: 2514,
user_id: 35,
affiliation: "cr",
domain: "os",
assigned_address: "10.0.0.146",
mac_address: "a0:36:9f:67:6f:60",
created_at: Sat, 26 May 2018 08:10:06 UTC +00:00,
updated_at: Sat, 26 May 2018 08:14:45 UTC +00:00,
vlan: 62>
[27] pry(main)> dalmore.save!
=> true
[28] pry(main)>
|