struct PlaceOS::Driver::Interface::DeviceInfo::Descriptor

Included Modules

Extended Modules

Defined in:

placeos-driver/interface/device_info.cr

Constructors

Instance Method Summary

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) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def firmware : String | Nil #

The version of code running on the device


[View source]
def firmware=(firmware : String | Nil) #

The version of code running on the device


[View source]
def hostname : String | Nil #

The DNS/mDNS name of the device


[View source]
def hostname=(hostname : String | Nil) #

The DNS/mDNS name of the device


[View source]
def ip_address : String | Nil #

The network address


[View source]
def ip_address=(ip_address : String | Nil) #

The network address


[View source]
def mac_address : String | Nil #

The network hardware address


[View source]
def mac_address=(mac_address : String | Nil) #

The network hardware address


[View source]
def make : String #

The manufacturer of the device


[View source]
def make=(make : String) #

The manufacturer of the device


[View source]
def model : String #

The product identifier


[View source]
def model=(model : String) #

The product identifier


[View source]
def serial : String | Nil #

The unique identifier


[View source]
def serial=(serial : String | Nil) #

The unique identifier


[View source]