YandexDisk::Resource
Inherits JSON::Serializable < Struct < Value < Object
A file or directory, as returned by the metadata endpoints.
Constructors
new(name : String, path : String, type : String, size : Int64 | Nil = nil, md5 : String | Nil = nil, sha256 : String | Nil = nil, mime_type : String | Nil = nil, media_type : String | Nil = nil, created : Time | Nil = nil, modified : Time | Nil = nil, public_key : String | Nil = nil, public_url : String | Nil = nil, custom_properties : Hash(String, JSON::Any) | Nil = nil, preview : String | Nil = nil, revision : Int64 | Nil = nil, origin_path : String | Nil = nil, embedded : ResourceList | Nil = nil)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
created
Sourcedir?
Sourceembedded
Sourcefile?
Sourcemd5
Sourcemedia_type
"image", "video", "document"… — the same vocabulary the
media_type filter on Client#files accepts.
mime_type
Sourcemodified
Sourcename
Sourcenormalized_path
Sourcepath
Sourcepreview
Sourcepublic_url
Sourcepublished?
Sourcerevision
Sourcesha256
Sourcesize
Source