Class: CreditOfficer::Base

Inherits:
Object
  • Object
show all
Extended by:
ActiveModel::Naming, ActiveModel::Translation
Includes:
ActiveModel::Validations
Defined in:
lib/credit_officer/base.rb

Direct Known Subclasses

CreditCard, MonthYearPair

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Base

Returns a new instance of Base.



9
10
11
# File 'lib/credit_officer/base.rb', line 9

def initialize(attributes = {})

end

Instance Method Details

#persisted?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/credit_officer/base.rb', line 17

def persisted?
  false
end

#to_keyObject



21
22
23
# File 'lib/credit_officer/base.rb', line 21

def to_key
  nil
end

#to_modelObject



13
14
15
# File 'lib/credit_officer/base.rb', line 13

def to_model
  self
end

#to_paramObject



25
26
27
# File 'lib/credit_officer/base.rb', line 25

def to_param
  nil
end