Class: Doorkeeper::Models::ExpirationTimeSqlMath::ExpirationTimeSqlGenerator
- Inherits:
-
Object
- Object
- Doorkeeper::Models::ExpirationTimeSqlMath::ExpirationTimeSqlGenerator
- Defined in:
- lib/doorkeeper/models/concerns/expiration_time_sql_math.rb
Direct Known Subclasses
MySqlExpirationTimeSqlGenerator, OracleExpirationTimeSqlGenerator, PostgresExpirationTimeSqlGenerator, SqlLiteExpirationTimeSqlGenerator, SqlServerExpirationTimeSqlGenerator
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
Instance Method Summary collapse
- #generate_sql ⇒ Object
-
#initialize(model) ⇒ ExpirationTimeSqlGenerator
constructor
A new instance of ExpirationTimeSqlGenerator.
Constructor Details
#initialize(model) ⇒ ExpirationTimeSqlGenerator
Returns a new instance of ExpirationTimeSqlGenerator.
13 14 15 |
# File 'lib/doorkeeper/models/concerns/expiration_time_sql_math.rb', line 13 def initialize(model) @model = model end |
Instance Attribute Details
#model ⇒ Object (readonly)
Returns the value of attribute model.
9 10 11 |
# File 'lib/doorkeeper/models/concerns/expiration_time_sql_math.rb', line 9 def model @model end |
Instance Method Details
#generate_sql ⇒ Object
17 18 19 |
# File 'lib/doorkeeper/models/concerns/expiration_time_sql_math.rb', line 17 def generate_sql raise "`generate_sql` should be overridden for a #{self.class.name}!" end |