Class: MobileDevice

Inherits:
Object
  • Object
show all
Defined in:
lib/text_spec/mobile_device.rb

Instance Method Summary collapse

Constructor Details

#initialize(number) ⇒ MobileDevice

Returns a new instance of MobileDevice.



3
4
5
# File 'lib/text_spec/mobile_device.rb', line 3

def initialize(number)
  @number = number
end

Instance Method Details

#messagesObject



7
8
9
# File 'lib/text_spec/mobile_device.rb', line 7

def messages
  TextSpec::Data.messages.select {|d| d.number == @number}
end