Class: BoundioV2::Call
Defined Under Namespace
Classes: NoVoiceFile, NotEnoughPoints
Instance Attribute Summary collapse
-
#cast ⇒ Object
Returns the value of attribute cast.
-
#id ⇒ Object
Returns the value of attribute id.
-
#tel_to ⇒ Object
Returns the value of attribute tel_to.
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Resource
api_version, create, #initialize, request
Constructor Details
This class inherits a constructor from BoundioV2::Resource
Instance Attribute Details
#cast ⇒ Object
Returns the value of attribute cast.
3 4 5 |
# File 'lib/boundioV2/call.rb', line 3 def cast @cast end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/boundioV2/call.rb', line 3 def id @id end |
#tel_to ⇒ Object
Returns the value of attribute tel_to.
3 4 5 |
# File 'lib/boundioV2/call.rb', line 3 def tel_to @tel_to end |
Class Method Details
.exceptions ⇒ Object
4 5 6 |
# File 'lib/boundioV2/call.rb', line 4 def self.exceptions super.merge(3 => NoVoiceFile, 4 => NotEnoughPoints) end |
Instance Method Details
#save ⇒ Object
8 9 10 11 12 |
# File 'lib/boundioV2/call.rb', line 8 def save res = self.class.request :post, "/call", :tel_to => tel_to, :cast => cast self.id = res["_id"] true end |