Class: ThriftClient::Simple::Field

### Home Classes Methods

### In Files

- lib/thrift_client/simple.rb

### Parent

Object

### Methods

- ::new
- #pack

### Files

- CHANGELOG
- LICENSE
- README.rdoc

### Class/Module Index

Quicksearch

- ThriftClient
- ThriftClient::NoServersAvailable
- ThriftClient::Simple
- ThriftClient::Simple::ComplexType
- ThriftClient::Simple::ComplexType::Extends
- ThriftClient::Simple::ComplexType::Includes
- ThriftClient::Simple::Field
- ThriftClient::Simple::ThriftException
- ThriftClient::Simple::ThriftService
- ThriftClient::Simple::ThriftStruct
- ThriftClient::Simple::ThriftStruct::Extend
- ThriftClient::Simple::ThriftStruct::Include
- Thrift
- Thrift::BaseTransport
- Thrift::BufferedTransport
- Thrift::Client
- Thrift::EventMachineConnection
- Thrift::EventMachineTransport
- Thrift::FramedTransport
- Connection
- Connection::Base
- Connection::Factory
- Connection::HTTP
- Connection::Socket
- AbstractThriftClient
- AbstractThriftClient::Server

No matching classes.

# ThriftClient::Simple::Field

### Attributes

fid[RW]
name[RW]
type[RW]

### Public Class Methods

new(name, type, fid) click to toggle source

    # File lib/thrift_client/simple.rb, line 181
    def initialize(name, type, fid)
      @name = name
      @type = type
      @fid = fid
    end

### Public Instance Methods

pack(value) click to toggle source

    # File lib/thrift_client/simple.rb, line 187
    def pack(value)
      value.nil? ? "" : [ type.to_i, fid, ThriftClient::Simple.pack_value(type, value) ].pack("cna*")
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.