Class: WebexXmlApi::Meeting::GetjoinurlMeeting
- Inherits:
-
Object
- Object
- WebexXmlApi::Meeting::GetjoinurlMeeting
- Includes:
- Common
- Defined in:
- lib/webex_xml_api/meeting/getjoinurl_meeting.rb
Constant Summary collapse
- REQUEST_TYPE =
'java:com.webex.service.binding.meeting.GetjoinurlMeeting'.freeze
- PARAMETER_MAPPING =
{ session_key: 'sessionKey' }.freeze
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#security_context ⇒ Object
Returns the value of attribute security_context.
-
#session_key ⇒ Object
Returns the value of attribute session_key.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ GetjoinurlMeeting
constructor
A new instance of GetjoinurlMeeting.
- #send_request ⇒ Object
- #to_xml ⇒ Object
- #valid?(context = self) ⇒ Boolean
Methods included from Common
#check_response_and_return_data, #create_xml_request, #post_webex_request, #process_object
Constructor Details
#initialize(attributes = {}) ⇒ GetjoinurlMeeting
Returns a new instance of GetjoinurlMeeting.
15 16 17 18 19 20 |
# File 'lib/webex_xml_api/meeting/getjoinurl_meeting.rb', line 15 def initialize(attributes = {}) attributes.each_pair do |k, v| send("#{k}=", v) if PARAMETER_MAPPING.key?(k) end @security_context ||= WebexXmlApi::SecurityContext.new(attributes) end |
Instance Attribute Details
#request ⇒ Object (readonly)
Returns the value of attribute request.
13 14 15 |
# File 'lib/webex_xml_api/meeting/getjoinurl_meeting.rb', line 13 def request @request end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
13 14 15 |
# File 'lib/webex_xml_api/meeting/getjoinurl_meeting.rb', line 13 def response @response end |
#security_context ⇒ Object
Returns the value of attribute security_context.
12 13 14 |
# File 'lib/webex_xml_api/meeting/getjoinurl_meeting.rb', line 12 def security_context @security_context end |
#session_key ⇒ Object
Returns the value of attribute session_key.
12 13 14 |
# File 'lib/webex_xml_api/meeting/getjoinurl_meeting.rb', line 12 def session_key @session_key end |
Instance Method Details
#send_request ⇒ Object
38 39 40 41 42 |
# File 'lib/webex_xml_api/meeting/getjoinurl_meeting.rb', line 38 def send_request @request = to_xml @response = post_webex_request(security_context.site_name, @request) check_response_and_return_data(@response) end |
#to_xml ⇒ Object
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/webex_xml_api/meeting/getjoinurl_meeting.rb', line 22 def to_xml raise WebexXmlApi::NotEnoughArguments, 'Meeting::GetjoinurlMeeting' unless valid? body_content = {} PARAMETER_MAPPING.each_pair do |k, v| body_content[v] = send(k) if send(k) end create_xml_request(@security_context.to_xml, REQUEST_TYPE, body_content) end |
#valid?(context = self) ⇒ Boolean
33 34 35 36 |
# File 'lib/webex_xml_api/meeting/getjoinurl_meeting.rb', line 33 def valid?(context = self) return false if context.session_key.nil? true end |