Class: Kaltura::KalturaYoutubeApiDistributionProfile

Inherits:
KalturaConfigurableDistributionProfile show all
Defined in:
lib/kaltura_plugins/kaltura_youtube_api_distribution_client_plugin.rb

Instance Attribute Summary collapse

Attributes inherited from KalturaConfigurableDistributionProfile

#field_config_array, #item_xpaths_to_extend, #use_category_entries

Attributes inherited from KalturaDistributionProfile

#auto_create_flavors, #auto_create_thumb, #created_at, #delete_enabled, #distribute_trigger, #id, #name, #optional_asset_distribution_rules, #optional_flavor_params_ids, #optional_thumb_dimensions, #partner_id, #provider_type, #recommended_dc_for_download, #recommended_dc_for_execute, #recommended_storage_profile_for_download, #report_enabled, #required_asset_distribution_rules, #required_flavor_params_ids, #required_thumb_dimensions, #status, #submit_enabled, #sunrise_default_offset, #sunset_default_offset, #support_image_entry, #update_enabled, #updated_at

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#allow_commentsObject

Returns the value of attribute allow_comments.



122
123
124
# File 'lib/kaltura_plugins/kaltura_youtube_api_distribution_client_plugin.rb', line 122

def allow_comments
  @allow_comments
end

#allow_embeddingObject

Returns the value of attribute allow_embedding.



123
124
125
# File 'lib/kaltura_plugins/kaltura_youtube_api_distribution_client_plugin.rb', line 123

def allow_embedding
  @allow_embedding
end

#allow_ratingsObject

Returns the value of attribute allow_ratings.



124
125
126
# File 'lib/kaltura_plugins/kaltura_youtube_api_distribution_client_plugin.rb', line 124

def allow_ratings
  @allow_ratings
end

#allow_responsesObject

Returns the value of attribute allow_responses.



125
126
127
# File 'lib/kaltura_plugins/kaltura_youtube_api_distribution_client_plugin.rb', line 125

def allow_responses
  @allow_responses
end

#api_authorize_urlObject

Returns the value of attribute api_authorize_url.



126
127
128
# File 'lib/kaltura_plugins/kaltura_youtube_api_distribution_client_plugin.rb', line 126

def api_authorize_url
  @api_authorize_url
end

#assume_successObject

Returns the value of attribute assume_success.



130
131
132
# File 'lib/kaltura_plugins/kaltura_youtube_api_distribution_client_plugin.rb', line 130

def assume_success
  @assume_success
end

#default_categoryObject

Returns the value of attribute default_category.



121
122
123
# File 'lib/kaltura_plugins/kaltura_youtube_api_distribution_client_plugin.rb', line 121

def default_category
  @default_category
end

#google_client_idObject

Returns the value of attribute google_client_id.



127
128
129
# File 'lib/kaltura_plugins/kaltura_youtube_api_distribution_client_plugin.rb', line 127

def google_client_id
  @google_client_id
end

#google_client_secretObject

Returns the value of attribute google_client_secret.



128
129
130
# File 'lib/kaltura_plugins/kaltura_youtube_api_distribution_client_plugin.rb', line 128

def google_client_secret
  @google_client_secret
end

#google_token_dataObject

Returns the value of attribute google_token_data.



129
130
131
# File 'lib/kaltura_plugins/kaltura_youtube_api_distribution_client_plugin.rb', line 129

def google_token_data
  @google_token_data
end

#privacy_statusObject

Returns the value of attribute privacy_status.



131
132
133
# File 'lib/kaltura_plugins/kaltura_youtube_api_distribution_client_plugin.rb', line 131

def privacy_status
  @privacy_status
end

#usernameObject

Returns the value of attribute username.



120
121
122
# File 'lib/kaltura_plugins/kaltura_youtube_api_distribution_client_plugin.rb', line 120

def username
  @username
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# File 'lib/kaltura_plugins/kaltura_youtube_api_distribution_client_plugin.rb', line 140

def from_xml(xml_element)
	super
	if xml_element.elements['username'] != nil
		self.username = xml_element.elements['username'].text
	end
	if xml_element.elements['defaultCategory'] != nil
		self.default_category = xml_element.elements['defaultCategory'].text
	end
	if xml_element.elements['allowComments'] != nil
		self.allow_comments = xml_element.elements['allowComments'].text
	end
	if xml_element.elements['allowEmbedding'] != nil
		self.allow_embedding = xml_element.elements['allowEmbedding'].text
	end
	if xml_element.elements['allowRatings'] != nil
		self.allow_ratings = xml_element.elements['allowRatings'].text
	end
	if xml_element.elements['allowResponses'] != nil
		self.allow_responses = xml_element.elements['allowResponses'].text
	end
	if xml_element.elements['apiAuthorizeUrl'] != nil
		self.api_authorize_url = xml_element.elements['apiAuthorizeUrl'].text
	end
	if xml_element.elements['googleClientId'] != nil
		self.google_client_id = xml_element.elements['googleClientId'].text
	end
	if xml_element.elements['googleClientSecret'] != nil
		self.google_client_secret = xml_element.elements['googleClientSecret'].text
	end
	if xml_element.elements['googleTokenData'] != nil
		self.google_token_data = xml_element.elements['googleTokenData'].text
	end
	if xml_element.elements['assumeSuccess'] != nil
		self.assume_success = xml_element.elements['assumeSuccess'].text
	end
	if xml_element.elements['privacyStatus'] != nil
		self.privacy_status = xml_element.elements['privacyStatus'].text
	end
end