Class: Tarantool::Client::SpaceInfo::Field
- Inherits:
-
Data
- Object
- Data
- Tarantool::Client::SpaceInfo::Field
- Defined in:
- tarantool-client/lib/tarantool/client/space_info.rb
Instance Attribute Summary collapse
-
#is_nullable ⇒ Object
readonly
Returns the value of attribute is_nullable.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
-
.from_raw(raw) ⇒ Object
A format entry without a type accepts any value.
Instance Attribute Details
#is_nullable ⇒ Object (readonly)
Returns the value of attribute is_nullable
22 23 24 |
# File 'tarantool-client/lib/tarantool/client/space_info.rb', line 22 def is_nullable @is_nullable end |
#name ⇒ Object (readonly)
Returns the value of attribute name
22 23 24 |
# File 'tarantool-client/lib/tarantool/client/space_info.rb', line 22 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type
22 23 24 |
# File 'tarantool-client/lib/tarantool/client/space_info.rb', line 22 def type @type end |
Class Method Details
.from_raw(raw) ⇒ Object
A format entry without a type accepts any value.
24 25 26 |
# File 'tarantool-client/lib/tarantool/client/space_info.rb', line 24 def self.from_raw(raw) new(name: raw['name'], type: raw.fetch('type', 'any'), is_nullable: raw.fetch('is_nullable', false)) end |