Class: Typekit::Configuration::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/typekit/configuration/base.rb

Direct Known Subclasses

Default

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(version: 1, format: :json, token:) ⇒ Base

Returns a new instance of Base.



6
7
8
9
10
# File 'lib/typekit/configuration/base.rb', line 6

def initialize(version: 1, format: :json, token:)
  @version = version
  @format = format
  @token = token
end

Instance Attribute Details

#formatObject (readonly)

Returns the value of attribute format.



4
5
6
# File 'lib/typekit/configuration/base.rb', line 4

def format
  @format
end

#tokenObject (readonly)

Returns the value of attribute token.



4
5
6
# File 'lib/typekit/configuration/base.rb', line 4

def token
  @token
end

#versionObject (readonly)

Returns the value of attribute version.



4
5
6
# File 'lib/typekit/configuration/base.rb', line 4

def version
  @version
end