Class: Google::Apis::AdminDirectoryV1::PrinterModel

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/admin_directory_v1/classes.rb,
lib/google/apis/admin_directory_v1/representations.rb,
lib/google/apis/admin_directory_v1/representations.rb

Overview

Printer manufacturer and model

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PrinterModel

Returns a new instance of PrinterModel.



3749
3750
3751
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3749

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#display_nameString

Display name. eq. "Brother MFC-8840D" Corresponds to the JSON property displayName

Returns:

  • (String)


3736
3737
3738
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3736

def display_name
  @display_name
end

#make_and_modelString

Make and model as represented in "make_and_model" field in Printer object. eq. "brother mfc-8840d" Corresponds to the JSON property makeAndModel

Returns:

  • (String)


3742
3743
3744
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3742

def make_and_model
  @make_and_model
end

#manufacturerString

Manufacturer. eq. "Brother" Corresponds to the JSON property manufacturer

Returns:

  • (String)


3747
3748
3749
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3747

def manufacturer
  @manufacturer
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3754
3755
3756
3757
3758
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3754

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @make_and_model = args[:make_and_model] if args.key?(:make_and_model)
  @manufacturer = args[:manufacturer] if args.key?(:manufacturer)
end