class MPD::Filter

Defined in:

crystal_mpd/filter.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.eq(tag : String, value : String) : Filter #

[View source]
def self.eq(tag : Tag, value : String) : Filter #

[View source]
def self.match(tag : String, value : String) : Filter #

[View source]
def self.match(tag : Tag, value : String) : Filter #

[View source]
def self.new #

[View source]
def self.not_eq(tag : String, value : String) : Filter #

[View source]
def self.not_eq(tag : Tag, value : String) : Filter #

[View source]
def self.not_match(tag : String, value : String) : Filter #

[View source]
def self.not_match(tag : Tag, value : String) : Filter #

[View source]

Class Method Detail

def self.contains(tag : String, value : String) #

[View source]
def self.contains(tag : Tag, value : String) #

[View source]
def self.contains_ci(tag : String, value : String) #

[View source]
def self.contains_ci(tag : Tag, value : String) #

[View source]
def self.contains_cs(tag : String, value : String) #

[View source]
def self.contains_cs(tag : Tag, value : String) #

[View source]
def self.eq_ci(tag : String, value : String) #

[View source]
def self.eq_ci(tag : Tag, value : String) #

[View source]
def self.eq_cs(tag : String, value : String) #

[View source]
def self.eq_cs(tag : Tag, value : String) #

[View source]
def self.not(expr : Filter) #

[View source]
def self.not_contains(tag : String, value : String) #

[View source]
def self.not_contains(tag : Tag, value : String) #

[View source]
def self.not_contains_ci(tag : String, value : String) #

[View source]
def self.not_contains_ci(tag : Tag, value : String) #

[View source]
def self.not_contains_cs(tag : String, value : String) #

[View source]
def self.not_contains_cs(tag : Tag, value : String) #

[View source]
def self.not_eq_ci(tag : String, value : String) #

[View source]
def self.not_eq_ci(tag : Tag, value : String) #

[View source]
def self.not_eq_cs(tag : String, value : String) #

[View source]
def self.not_eq_cs(tag : Tag, value : String) #

[View source]
def self.not_starts_with(tag : String, value : String) #

[View source]
def self.not_starts_with(tag : Tag, value : String) #

[View source]
def self.not_starts_with_ci(tag : String, value : String) #

[View source]
def self.not_starts_with_ci(tag : Tag, value : String) #

[View source]
def self.not_starts_with_cs(tag : String, value : String) #

[View source]
def self.not_starts_with_cs(tag : Tag, value : String) #

[View source]
def self.starts_with(tag : String, value : String) #

[View source]
def self.starts_with(tag : Tag, value : String) #

[View source]
def self.starts_with_ci(tag : String, value : String) #

[View source]
def self.starts_with_ci(tag : Tag, value : String) #

[View source]
def self.starts_with_cs(tag : String, value : String) #

[View source]
def self.starts_with_cs(tag : Tag, value : String) #

[View source]

Instance Method Detail

def contains(tag : String, value : String) #

[View source]
def contains(tag : Tag, value : String) #

[View source]
def contains_ci(tag : String, value : String) #

[View source]
def contains_ci(tag : Tag, value : String) #

[View source]
def contains_cs(tag : String, value : String) #

[View source]
def contains_cs(tag : Tag, value : String) #

[View source]
def eq(tag : String, value : String) #

[View source]
def eq(tag : Tag, value : String) #

[View source]
def eq_ci(tag : String, value : String) #

[View source]
def eq_ci(tag : Tag, value : String) #

[View source]
def eq_cs(tag : String, value : String) #

[View source]
def eq_cs(tag : Tag, value : String) #

[View source]
def match(tag : String, value : String) #

[View source]
def match(tag : Tag, value : String) #

[View source]
def not(expr : Filter) #

Logical NOT for nested filters


[View source]
def not_contains(tag : String, value : String) #

[View source]
def not_contains(tag : Tag, value : String) #

[View source]
def not_contains_ci(tag : String, value : String) #

[View source]
def not_contains_ci(tag : Tag, value : String) #

[View source]
def not_contains_cs(tag : String, value : String) #

[View source]
def not_contains_cs(tag : Tag, value : String) #

[View source]
def not_eq(tag : String, value : String) #

[View source]
def not_eq(tag : Tag, value : String) #

[View source]
def not_eq_ci(tag : String, value : String) #

[View source]
def not_eq_ci(tag : Tag, value : String) #

[View source]
def not_eq_cs(tag : String, value : String) #

[View source]
def not_eq_cs(tag : Tag, value : String) #

[View source]
def not_match(tag : String, value : String) #

[View source]
def not_match(tag : Tag, value : String) #

[View source]
def not_starts_with(tag : String, value : String) #

[View source]
def not_starts_with(tag : Tag, value : String) #

[View source]
def not_starts_with_ci(tag : String, value : String) #

[View source]
def not_starts_with_ci(tag : Tag, value : String) #

[View source]
def not_starts_with_cs(tag : String, value : String) #

[View source]
def not_starts_with_cs(tag : Tag, value : String) #

[View source]
def sort(tag : String) #

sorts the result by the specified tag


[View source]
def sort(tag : MPD::Tag) #

sorts the result by the specified tag


[View source]
def sort : String | Nil #

[View source]
def starts_with(tag : String, value : String) #

[View source]
def starts_with(tag : Tag, value : String) #

[View source]
def starts_with_ci(tag : String, value : String) #

[View source]
def starts_with_ci(tag : Tag, value : String) #

[View source]
def starts_with_cs(tag : String, value : String) #

[View source]
def starts_with_cs(tag : Tag, value : String) #

[View source]
def to_s(io : IO) : Nil #
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>

[View source]
def to_s : String #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[View source]
def window(range : MPD::Range) #

can be used to query only a portion of the real response


[View source]
def window : MPD::Range | Nil #

[View source]