Class: Google::Apis::WebfontsV1::Axis

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 variable font axis.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#endFloat

maximum value Corresponds to the JSON property end

Returns:

  • (Float)

32
33
34
# File 'lib/google/apis/webfonts_v1/classes.rb', line 32

def end
  @end
end

#startFloat

minimum value Corresponds to the JSON property start

Returns:

  • (Float)

37
38
39
# File 'lib/google/apis/webfonts_v1/classes.rb', line 37

def start
  @start
end

#tagString

tag name. Corresponds to the JSON property tag

Returns:

  • (String)

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