Class: Google::Apis::AdminDirectoryV1::PrinterModel
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::PrinterModel
- 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
-
#display_name ⇒ String
Display name.
-
#make_and_model ⇒ String
Make and model as represented in "make_and_model" field in Printer object.
-
#manufacturer ⇒ String
Manufacturer.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PrinterModel
constructor
A new instance of PrinterModel.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PrinterModel
Returns a new instance of PrinterModel.
3715 3716 3717 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3715 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
Display name. eq. "Brother MFC-8840D"
Corresponds to the JSON property displayName
3702 3703 3704 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3702 def display_name @display_name end |
#make_and_model ⇒ String
Make and model as represented in "make_and_model" field in Printer object. eq.
"brother mfc-8840d"
Corresponds to the JSON property makeAndModel
3708 3709 3710 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3708 def make_and_model @make_and_model end |
#manufacturer ⇒ String
Manufacturer. eq. "Brother"
Corresponds to the JSON property manufacturer
3713 3714 3715 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3713 def manufacturer @manufacturer end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3720 3721 3722 3723 3724 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3720 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 |