Class: Iodized::Features::Client
- Inherits:
-
Object
- Object
- Iodized::Features::Client
- Includes:
- Thrift::Client
- Defined in:
- lib/iodized/features.rb
Instance Method Summary collapse
- #feature_set(state) ⇒ Object
- #ping ⇒ Object
- #recv_feature_set ⇒ Object
- #recv_ping ⇒ Object
- #send_feature_set(state) ⇒ Object
- #send_ping ⇒ Object
Instance Method Details
#feature_set(state) ⇒ Object
30 31 32 33 |
# File 'lib/iodized/features.rb', line 30 def feature_set(state) send_feature_set(state) return recv_feature_set() end |
#ping ⇒ Object
15 16 17 18 |
# File 'lib/iodized/features.rb', line 15 def ping() send_ping() return recv_ping() end |
#recv_feature_set ⇒ Object
39 40 41 42 43 |
# File 'lib/iodized/features.rb', line 39 def recv_feature_set() result = (Feature_set_result) return result.success unless result.success.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'feature_set failed: unknown result') end |
#recv_ping ⇒ Object
24 25 26 27 28 |
# File 'lib/iodized/features.rb', line 24 def recv_ping() result = (Ping_result) return result.success unless result.success.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'ping failed: unknown result') end |
#send_feature_set(state) ⇒ Object
35 36 37 |
# File 'lib/iodized/features.rb', line 35 def send_feature_set(state) ('feature_set', Feature_set_args, :state => state) end |
#send_ping ⇒ Object
20 21 22 |
# File 'lib/iodized/features.rb', line 20 def send_ping() ('ping', Ping_args) end |