struct Lester::Server::Usb::Interface

Included Modules

Defined in:

lester/server/usb/interface.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

Instance Method Detail

def class : String | Nil #
Description copied from class Object

Returns the runtime Class of an object.

1.class       # => Int32
"hello".class # => String

Compare it with typeof, which returns the compile-time type of an object:

random_value = rand # => 0.627423
value = random_value < 0.5 ? 1 : "hello"
value         # => "hello"
value.class   # => String
typeof(value) # => Int32 | String

[View source]
def class_id : Int32 | Nil #

[View source]
def driver : String | Nil #

[View source]
def driver_version : String | Nil #

[View source]
def number : Int32 | Nil #

[View source]
def subclass : String | Nil #

[View source]
def subclass_id : Int32 | Nil #

[View source]