patapizza/COP-Ruby

View on GitHub
phone/phone_call.rb

Summary

Maintainability
A
0 mins
Test Coverage
#!/usr/bin/env ruby

class PhoneCall
  
  attr_accessor :from

  def initialize(from)
    @from = from
  end
  
  def self.from(from)
    self.new(from)
  end

  def to_s
    "from #{ @from }"
  end

end