class RSS::Image

Defined in:

cryss/image.cr

Constructors

Instance Method Summary

Instance methods inherited from class RSS::Element

ns(name : String, &) ns, to_s(io : IO) to_s, to_xml(io : IO)
to_xml(xml : XML::Builder)
to_xml

Constructor Detail

def self.new(image : URI | String, title : String, link : URI | String) #

[View source]

Instance Method Detail

def description : String | Nil #

Description contains text that is included in the TITLE attribute of the link formed around the image in the HTML rendering.


[View source]
def description=(description : Nil | String) #

[View source]
def height : Float32 #

Height of the image in pixels. Default is 31. Maximum of 400.


[View source]
def height=(height : Float32) #

[View source]
def image : URI #

URL of a GIF, JPEG or PNG image that represents the channel.


[View source]
def image=(image : URI) #

[View source]
def link : URI #

URL of the site, when the channel is rendered, the image is a link to the site. (Note, in practice the image and <link> should have the same value as the channel's <title> and</p> <link>. </div> <br/> <div> [<a href="https://github.com/xeals/cryss/blob/v0.1.0/src/cryss/image.cr#L33" target="_blank">View source</a>] </div> </div> <div class="entry-detail" id="link=(link:URI)-instance-method"> <div class="signature"> def <strong>link=</strong>(link : URI) <a class="method-permalink" href="#link%3D%28link%3AURI%29-instance-method">#</a> </div> <br/> <div> [<a href="https://github.com/xeals/cryss/blob/v0.1.0/src/cryss/image.cr#L45" target="_blank">View source</a>] </div> </div> <div class="entry-detail" id="title:String-instance-method"> <div class="signature"> def <strong>title</strong> : String <a class="method-permalink" href="#title%3AString-instance-method">#</a> </div> <div class="doc"> <p>Describes the image.</p> <p>Used in the ALT attribute of the HTML <img> tag when the channel is rendered in HTML.</p> </div> <br/> <div> [<a href="https://github.com/xeals/cryss/blob/v0.1.0/src/cryss/image.cr#L28" target="_blank">View source</a>] </div> </div> <div class="entry-detail" id="title=(title:String)-instance-method"> <div class="signature"> def <strong>title=</strong>(title : String) <a class="method-permalink" href="#title%3D%28title%3AString%29-instance-method">#</a> </div> <br/> <div> [<a href="https://github.com/xeals/cryss/blob/v0.1.0/src/cryss/image.cr#L45" target="_blank">View source</a>] </div> </div> <div class="entry-detail" id="to_xml(xml:XML::Builder)-instance-method"> <div class="signature"> def <strong>to_xml</strong>(xml : XML::Builder) <a class="method-permalink" href="#to_xml%28xml%3AXML%3A%3ABuilder%29-instance-method">#</a> </div> <div class="doc"> <p>Serialises the image to the XML builder.</p> </div> <br/> <div> [<a href="https://github.com/xeals/cryss/blob/v0.1.0/src/cryss/image.cr#L66" target="_blank">View source</a>] </div> </div> <div class="entry-detail" id="width:Float32-instance-method"> <div class="signature"> def <strong>width</strong> : Float32 <a class="method-permalink" href="#width%3AFloat32-instance-method">#</a> </div> <div class="doc"> <p>Width of the image in pixels. Default is 88. Maximum of 144.</p> </div> <br/> <div> [<a href="https://github.com/xeals/cryss/blob/v0.1.0/src/cryss/image.cr#L36" target="_blank">View source</a>] </div> </div> <div class="entry-detail" id="width=(width:Float32)-instance-method"> <div class="signature"> def <strong>width=</strong>(width : Float32) <a class="method-permalink" href="#width%3D%28width%3AFloat32%29-instance-method">#</a> </div> <br/> <div> [<a href="https://github.com/xeals/cryss/blob/v0.1.0/src/cryss/image.cr#L55" target="_blank">View source</a>] </div> </div> </div> </body> </html>