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
Linkerobject 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
#destinationproperty -
#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
#editfunction -
#short : String
Get the
#shortproperty -
#short=(short : String)
Set the
#shortproperty -
#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
#tokenproperty -
#uri : String
Get the
#uriproperty
Constructor Detail
Parse a Linker object from a Hash
Instance Method Detail
Change the value of the destination property without triggering the #edit function