Class: Google::Apis::WebfontsV1::Tag
- Inherits:
-
Object
- Object
- Google::Apis::WebfontsV1::Tag
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/webfonts_v1/classes.rb,
lib/google/apis/webfonts_v1/representations.rb,
lib/google/apis/webfonts_v1/representations.rb
Overview
Metadata for a tag.
Instance Attribute Summary collapse
-
#name ⇒ String
The name of the tag.
-
#weight ⇒ Float
The weight of the tag.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Tag
constructor
A new instance of Tag.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Tag
Returns a new instance of Tag.
70 71 72 |
# File 'lib/google/apis/webfonts_v1/classes.rb', line 70 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
The name of the tag.
Corresponds to the JSON property name
63 64 65 |
# File 'lib/google/apis/webfonts_v1/classes.rb', line 63 def name @name end |
#weight ⇒ Float
The weight of the tag.
Corresponds to the JSON property weight
68 69 70 |
# File 'lib/google/apis/webfonts_v1/classes.rb', line 68 def weight @weight end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
75 76 77 78 |
# File 'lib/google/apis/webfonts_v1/classes.rb', line 75 def update!(**args) @name = args[:name] if args.key?(:name) @weight = args[:weight] if args.key?(:weight) end |