Class: Apill::Tokens::Base64
- Inherits:
-
Object
- Object
- Apill::Tokens::Base64
- Defined in:
- lib/apill/tokens/base64.rb
Instance Attribute Summary collapse
-
#token ⇒ Object
Returns the value of attribute token.
Class Method Summary collapse
Instance Method Summary collapse
- #blank? ⇒ Boolean
-
#initialize(token:) ⇒ Base64
constructor
A new instance of Base64.
- #to_h ⇒ Object
- #valid? ⇒ Boolean
Constructor Details
#initialize(token:) ⇒ Base64
Returns a new instance of Base64.
10 11 12 |
# File 'lib/apill/tokens/base64.rb', line 10 def initialize(token:) self.token = token end |
Instance Attribute Details
#token ⇒ Object
Returns the value of attribute token.
8 9 10 |
# File 'lib/apill/tokens/base64.rb', line 8 def token @token end |
Class Method Details
Instance Method Details
#blank? ⇒ Boolean
18 19 20 |
# File 'lib/apill/tokens/base64.rb', line 18 def blank? false end |
#to_h ⇒ Object
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/apill/tokens/base64.rb', line 22 def to_h [ { 'token' => token, }, { 'typ' => 'base64', }, ] end |
#valid? ⇒ Boolean
14 15 16 |
# File 'lib/apill/tokens/base64.rb', line 14 def valid? true end |