Class: Google::Apis::DiscoveryV1::RestDescription::Icons

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

Overview

Links to 16x16 and 32x32 icons representing the API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Icons

Returns a new instance of Icons.



655
656
657
# File 'generated/google/apis/discovery_v1/classes.rb', line 655

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

Instance Attribute Details

#x16String

The URL of the 16x16 icon. Corresponds to the JSON property x16

Returns:

  • (String)


648
649
650
# File 'generated/google/apis/discovery_v1/classes.rb', line 648

def x16
  @x16
end

#x32String

The URL of the 32x32 icon. Corresponds to the JSON property x32

Returns:

  • (String)


653
654
655
# File 'generated/google/apis/discovery_v1/classes.rb', line 653

def x32
  @x32
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



660
661
662
663
# File 'generated/google/apis/discovery_v1/classes.rb', line 660

def update!(**args)
  @x16 = args[:x16] if args.key?(:x16)
  @x32 = args[:x32] if args.key?(:x32)
end