Class: GrpcReflection::FileDescriptorDecorator
- Inherits:
-
Object
- Object
- GrpcReflection::FileDescriptorDecorator
- Defined in:
- lib/grpc_reflection/file_descriptor_decorator.rb
Instance Attribute Summary collapse
-
#dataset ⇒ Object
readonly
Returns the value of attribute dataset.
-
#dependency ⇒ Object
readonly
Returns the value of attribute dependency.
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
-
#serialized_file ⇒ Object
readonly
Returns the value of attribute serialized_file.
Instance Method Summary collapse
-
#initialize(file_descriptor_proto) ⇒ FileDescriptorDecorator
constructor
A new instance of FileDescriptorDecorator.
Constructor Details
#initialize(file_descriptor_proto) ⇒ FileDescriptorDecorator
Returns a new instance of FileDescriptorDecorator.
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/grpc_reflection/file_descriptor_decorator.rb', line 11 def initialize(file_descriptor_proto) @file_descriptor_proto = file_descriptor_proto @serialized_file = Google::Protobuf::FileDescriptorProto.encode(@file_descriptor_proto) @filename = @file_descriptor_proto.name @dependency = @file_descriptor_proto.dependency || [] @dataset = Set.new set_dataset end |
Instance Attribute Details
#dataset ⇒ Object (readonly)
Returns the value of attribute dataset.
9 10 11 |
# File 'lib/grpc_reflection/file_descriptor_decorator.rb', line 9 def dataset @dataset end |
#dependency ⇒ Object (readonly)
Returns the value of attribute dependency.
9 10 11 |
# File 'lib/grpc_reflection/file_descriptor_decorator.rb', line 9 def dependency @dependency end |
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
9 10 11 |
# File 'lib/grpc_reflection/file_descriptor_decorator.rb', line 9 def filename @filename end |
#serialized_file ⇒ Object (readonly)
Returns the value of attribute serialized_file.
9 10 11 |
# File 'lib/grpc_reflection/file_descriptor_decorator.rb', line 9 def serialized_file @serialized_file end |