class DiasporaFederation::Entities::Embed
This entity is used to specify embed information about an URL that should be embedded.
Public Instance Methods
to_s()
click to toggle source
@return [String] string representation of this object
# File lib/diaspora_federation/entities/embed.rb, line 35 def to_s "Embed#{":#{url}" if url}" end
validate()
click to toggle source
Calls superclass method
# File lib/diaspora_federation/entities/embed.rb, line 39 def validate super raise ValidationError, "Either 'url' must be set or 'nothing' must be 'true'" unless nothing ^ url end