Class: Fraggle::Response

Inherits:
Object
  • Object
show all
Includes:
Beefcake::Message
Defined in:
lib/fraggle/msg.pb.rb,
lib/fraggle/response.rb

Defined Under Namespace

Modules: Err

Constant Summary collapse

SET =
4
DEL =
8

Instance Method Summary collapse

Instance Method Details

#del?Boolean

Returns:

  • (Boolean)


14
15
16
17
# File 'lib/fraggle/response.rb', line 14

def del?
  return false if !flags
  (flags & DEL) > 0
end

#missing?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/fraggle/response.rb', line 19

def missing?
  rev == 0
end

#ok?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/fraggle/response.rb', line 23

def ok?
  err_code.nil?
end

#set?Boolean

Returns:

  • (Boolean)


9
10
11
12
# File 'lib/fraggle/response.rb', line 9

def set?
  return false if !flags
  (flags & SET) > 0
end