Module: LHS::Record::Model

Extended by:
ActiveSupport::Concern
Included in:
LHS::Record
Defined in:
lib/lhs/concerns/record/model.rb

Instance Method Summary collapse

Instance Method Details

#persisted?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/lhs/concerns/record/model.rb', line 15

def persisted?
  href.present?
end

#to_modelObject



11
12
13
# File 'lib/lhs/concerns/record/model.rb', line 11

def to_model
  self
end