abstract class GitLab::Resource
- GitLab::Resource
- GitLab
- Reference
- Object
Overview
The base class for GitLab resources fetched from the server.
Included Modules
- JSON::Serializable
Direct Known Subclasses
- GitLab::Lint
- GitLab::Markdown
- GitLab::Namespace
- GitLab::Preferences
- GitLab::Project
- GitLab::Status
- GitLab::User
- GitLab::Version
Defined in:
gitlab/resource.crConstructors
Instance Method Summary
-
#to_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
Instance methods inherited from class GitLab
api : URI
api,
api=(api : URI)
api=,
get(path : String, & : HTTP::Client::Response -> )get(path : String)
get(uri : URI) get, home : Path home, home=(home : Path) home=, markdown(text : String, gfm : Bool = true, project : UInt128 | String | Nil = nil) markdown, namespace namespace, post(path : String, data : NamedTuple) post, project project, project? project?, token : String token, token=(token : String) token=, user(id) : User
user : Me user, users users, version version
Class methods inherited from class GitLab
cli(op : OptionParser)
cli
Constructor Detail
Instance Method Detail
def to_s(io : IO)
#
Description copied from class Reference
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>