Class: Flexite::Diff::Token
- Inherits:
-
Object
- Object
- Flexite::Diff::Token
- Defined in:
- app/services/flexite/diff/token.rb
Instance Method Summary collapse
-
#initialize(string_token) ⇒ Token
constructor
A new instance of Token.
- #invalid? ⇒ Boolean
- #valid? ⇒ Boolean
Constructor Details
#initialize(string_token) ⇒ Token
Returns a new instance of Token.
4 5 6 |
# File 'app/services/flexite/diff/token.rb', line 4 def initialize(string_token) @token = string_token end |
Instance Method Details
#invalid? ⇒ Boolean
12 13 14 |
# File 'app/services/flexite/diff/token.rb', line 12 def invalid? !valid? end |
#valid? ⇒ Boolean
8 9 10 |
# File 'app/services/flexite/diff/token.rb', line 8 def valid? secure_compare(Flexite.config.migration_token, @token) end |