Class: Sms

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

Overview

Basic SMS class for sample gateway

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(body) ⇒ Sms

Returns a new instance of Sms.



6
7
8
# File 'lib/sms.rb', line 6

def initialize(body)
  self.body = body
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



4
5
6
# File 'lib/sms.rb', line 4

def body
  @body
end

#fromObject

Returns the value of attribute from.



4
5
6
# File 'lib/sms.rb', line 4

def from
  @from
end

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/sms.rb', line 4

def id
  @id
end

#toObject

Returns the value of attribute to.



4
5
6
# File 'lib/sms.rb', line 4

def to
  @to
end