class LinkShort::Linker
- LinkShort::Linker
- Reference
- Object
Overview
The representation of the shortcut
resource
Defined in:
linker.crConstructors
-
.from_h(data : Hash(String, JSON::Any | String), uri : String, linkshort : LinkShort) : Linker
Parse a
Linker
object from aHash
- .new(short : String, uri : String, destination : String, linkshort : LinkShort, token : String = "")
Instance Method Summary
-
#active? : Bool
Check wether the shorcut can still be used
-
#delete
Shorcut for
Linker.delete
-
#destination : String
Get the
#destination
property -
#destination=(destination : String)
Edit the destination via the assignment operator
-
#edit(destination : String)
Shorcut for
LinkShort.edit
-
#empty?
Check wether this object is empty
-
#original? : Bool
Check wether this object is the original one and can be edited
-
#secure? : Bool
Check wether the destination URI has https or not
-
#set_destination(destination : String) : String
Change the value of the destination property without triggering the
#edit
function -
#short : String
Get the
#short
property -
#short=(short : String)
Set the
#short
property -
#shortcut_url : String
Returns the shorctu url, with which the shortcut can be used
-
#to_json
Returns the JSON representation of this object
-
#token : String
Get the
#token
property -
#uri : String
Get the
#uri
property
Constructor Detail
Parse a Linker
object from a Hash
Instance Method Detail
Change the value of the destination property without triggering the #edit
function