Class: Henkilotunnus::Test::PersonModel

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Validations
Defined in:
lib/henkilotunnus/test/person_model.rb

Overview

A dummy model for testing the validator.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pin) ⇒ PersonModel

Returns a new instance of PersonModel.



15
16
17
18
# File 'lib/henkilotunnus/test/person_model.rb', line 15

def initialize(pin)
  @pin = pin
  @pin_message = pin
end

Instance Attribute Details

#pinObject (readonly)

Returns the value of attribute pin.



12
13
14
# File 'lib/henkilotunnus/test/person_model.rb', line 12

def pin
  @pin
end

#pin_messageObject (readonly)

Returns the value of attribute pin_message.



13
14
15
# File 'lib/henkilotunnus/test/person_model.rb', line 13

def pin_message
  @pin_message
end