Class: Doorkeeper::Models::ExpirationTimeSqlMath::ExpirationTimeSqlGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/doorkeeper/models/concerns/expiration_time_sql_math.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#modelObject (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_sqlObject



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