Class: Tair::FetchDataServerRequest

Inherits:
Request
  • Object
show all
Defined in:
lib/tair/operation/fetch_data_servers.rb

Defined Under Namespace

Classes: Body

Constant Summary collapse

PACKET_CODE =
1002

Constants inherited from Request

Request::MAX_INT32, Request::TAIR_PACKET_FLAG

Instance Attribute Summary collapse

Attributes inherited from Request

#namespace

Instance Method Summary collapse

Methods inherited from Request

#encode, #header, #inspect, #packet_code, #req_id

Constructor Details

#initialize(group) ⇒ FetchDataServerRequest

Returns a new instance of FetchDataServerRequest.



25
26
27
# File 'lib/tair/operation/fetch_data_servers.rb', line 25

def initialize(group)
  @group = group
end

Instance Attribute Details

#groupObject

Returns the value of attribute group.



23
24
25
# File 'lib/tair/operation/fetch_data_servers.rb', line 23

def group
  @group
end

Instance Method Details

#bodyObject



29
30
31
# File 'lib/tair/operation/fetch_data_servers.rb', line 29

def body
  Body.new(group: group)
end