Class: Typekit::Configuration::Base
- Inherits:
-
Object
- Object
- Typekit::Configuration::Base
- Defined in:
- lib/typekit/configuration/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#format ⇒ Object
readonly
Returns the value of attribute format.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(version: 1, format: :json, token:) ⇒ Base
constructor
A new instance of Base.
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
#format ⇒ Object (readonly)
Returns the value of attribute format.
4 5 6 |
# File 'lib/typekit/configuration/base.rb', line 4 def format @format end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
4 5 6 |
# File 'lib/typekit/configuration/base.rb', line 4 def token @token end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
4 5 6 |
# File 'lib/typekit/configuration/base.rb', line 4 def version @version end |