Class: Google::Apis::WebfontsV1::Tag

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#nameString

The name of the tag. Corresponds to the JSON property name

Returns:

  • (String)


63
64
65
# File 'lib/google/apis/webfonts_v1/classes.rb', line 63

def name
  @name
end

#weightFloat

The weight of the tag. Corresponds to the JSON property weight

Returns:

  • (Float)


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