struct
PlaceOS::Driver::Interface::DeviceInfo::Descriptor
Included Modules
- JSON::Serializable
Extended Modules
- JSON::Schema
Defined in:
placeos-driver/interface/device_info.crConstructors
- .new(make : String, model : String, serial : Nil | String = nil, firmware : Nil | String = nil, mac_address : Nil | String = nil, ip_address : Nil | String = nil, hostname : Nil | String = nil)
- .new(pull : JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#firmware : String | Nil
The version of code running on the device
-
#firmware=(firmware : String | Nil)
The version of code running on the device
-
#hostname : String | Nil
The DNS/mDNS name of the device
-
#hostname=(hostname : String | Nil)
The DNS/mDNS name of the device
-
#ip_address : String | Nil
The network address
-
#ip_address=(ip_address : String | Nil)
The network address
-
#mac_address : String | Nil
The network hardware address
-
#mac_address=(mac_address : String | Nil)
The network hardware address
-
#make : String
The manufacturer of the device
-
#make=(make : String)
The manufacturer of the device
-
#model : String
The product identifier
-
#model=(model : String)
The product identifier
-
#serial : String | Nil
The unique identifier
-
#serial=(serial : String | Nil)
The unique identifier
Constructor Detail
def self.new(make : String, model : String, serial : Nil | String = nil, firmware : Nil | String = nil, mac_address : Nil | String = nil, ip_address : Nil | String = nil, hostname : Nil | String = nil)
#