Class: Google::Apis::WebfontsV1::Axis
- Inherits:
-
Object
- Object
- Google::Apis::WebfontsV1::Axis
- 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 variable font axis.
Instance Attribute Summary collapse
-
#end ⇒ Float
maximum value Corresponds to the JSON property
end
. -
#start ⇒ Float
minimum value Corresponds to the JSON property
start
. -
#tag ⇒ String
tag name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Axis
constructor
A new instance of Axis.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Axis
Returns a new instance of Axis.
44 45 46 |
# File 'lib/google/apis/webfonts_v1/classes.rb', line 44 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end ⇒ Float
maximum value
Corresponds to the JSON property end
32 33 34 |
# File 'lib/google/apis/webfonts_v1/classes.rb', line 32 def end @end end |
#start ⇒ Float
minimum value
Corresponds to the JSON property start
37 38 39 |
# File 'lib/google/apis/webfonts_v1/classes.rb', line 37 def start @start end |
#tag ⇒ String
tag name.
Corresponds to the JSON property tag
42 43 44 |
# File 'lib/google/apis/webfonts_v1/classes.rb', line 42 def tag @tag end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
49 50 51 52 53 |
# File 'lib/google/apis/webfonts_v1/classes.rb', line 49 def update!(**args) @end = args[:end] if args.key?(:end) @start = args[:start] if args.key?(:start) @tag = args[:tag] if args.key?(:tag) end |