Class: TokBoxer::Call
- Inherits:
-
Object
- Object
- TokBoxer::Call
- Defined in:
- lib/TokBoxer/Call.rb
Instance Attribute Summary collapse
-
#callerJabberId ⇒ Object
readonly
Returns the value of attribute callerJabberId.
-
#callerName ⇒ Object
readonly
Returns the value of attribute callerName.
-
#callId ⇒ Object
(also: #id)
readonly
Returns the value of attribute callId.
-
#persistent ⇒ Object
readonly
Returns the value of attribute persistent.
-
#server ⇒ Object
readonly
Returns the value of attribute server.
Instance Method Summary collapse
- #embed_code(width = "322", height = "321") ⇒ Object
-
#initialize(callerName, callId, callerJabberId, persistent, server, api) ⇒ Call
constructor
A new instance of Call.
- #to_s ⇒ Object
Constructor Details
#initialize(callerName, callId, callerJabberId, persistent, server, api) ⇒ Call
Returns a new instance of Call.
8 9 10 11 12 13 14 15 |
# File 'lib/TokBoxer/Call.rb', line 8 def initialize(callerName, callId, callerJabberId, persistent, server, api) @callerName = callerName @callId = callId @callerJabberId = callerJabberId @persistent = persistent @server = server @api = api end |
Instance Attribute Details
#callerJabberId ⇒ Object (readonly)
Returns the value of attribute callerJabberId.
5 6 7 |
# File 'lib/TokBoxer/Call.rb', line 5 def callerJabberId @callerJabberId end |
#callerName ⇒ Object (readonly)
Returns the value of attribute callerName.
5 6 7 |
# File 'lib/TokBoxer/Call.rb', line 5 def callerName @callerName end |
#callId ⇒ Object (readonly) Also known as: id
Returns the value of attribute callId.
5 6 7 |
# File 'lib/TokBoxer/Call.rb', line 5 def callId @callId end |
#persistent ⇒ Object (readonly)
Returns the value of attribute persistent.
5 6 7 |
# File 'lib/TokBoxer/Call.rb', line 5 def persistent @persistent end |
#server ⇒ Object (readonly)
Returns the value of attribute server.
5 6 7 |
# File 'lib/TokBoxer/Call.rb', line 5 def server @server end |
Instance Method Details
#embed_code(width = "322", height = "321") ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/TokBoxer/Call.rb', line 17 def (width="322", height="321") " <object width=\"\#{width}\" height=\"\#{height}\">\n <param name=\"movie\" value=\"\#{@api.api_server_url}\#{API_SERVER_CALL_WIDGET}\#{id}\" />\n <param name=\"allowFullScreen\" value=\"true\" />\n <param name=\"allowScriptAccess\" value=\"true\" />\n <param name=\"flashVars\" value=\"textChat=true&guestList=false&inviteButton=false\" />\n <embed src=\"\#{@api.api_server_url}\#{API_SERVER_CALL_WIDGET}\#{id}\"\n type=\"application/x-shockwave-flash\"\n allowfullscreen=\"true\"\n allowScriptAccess=\"always\"\n width=\"\#{width}\"\n height=\"\#{height}\"\n flashvars=\"textChat=true&guestList=false&inviteButton=false\" >\n </embed>\n </object>\n END\nend\n" |
#to_s ⇒ Object
36 37 38 |
# File 'lib/TokBoxer/Call.rb', line 36 def to_s id end |