Class: Phone

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/phone.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#numberObject

Returns the value of attribute number.



2
3
4
# File 'app/models/phone.rb', line 2

def number
  @number
end

Instance Method Details

#save_with_format!Object



15
16
17
18
# File 'app/models/phone.rb', line 15

def save_with_format!
  save_with_format
  save
end