Class: Cadenya::Types::GoogleProtobufAny
- Inherits:
-
Object
- Object
- Cadenya::Types::GoogleProtobufAny
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type: nil) ⇒ GoogleProtobufAny
constructor
A new instance of GoogleProtobufAny.
- #to_h ⇒ Object
Constructor Details
#initialize(type: nil) ⇒ GoogleProtobufAny
Returns a new instance of GoogleProtobufAny.
2289 2290 2291 |
# File 'lib/cadenya/types.rb', line 2289 def initialize(type: nil) @type = type end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
2287 2288 2289 |
# File 'lib/cadenya/types.rb', line 2287 def type @type end |
Class Method Details
.from_json(data) ⇒ Object
2293 2294 2295 2296 2297 |
# File 'lib/cadenya/types.rb', line 2293 def self.from_json(data) new( type: data["@type"], ) end |