Class: VertxSqlClient::PropertyKind
- Inherits:
-
Object
- Object
- VertxSqlClient::PropertyKind
- Defined in:
- /Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/property_kind.rb
Overview
Represents which kind the property is.
Class Method Summary (collapse)
-
+ (::VertxSqlClient::PropertyKind) create(name = nil, type = nil)
A property kind matching the provided name, the type can be used to check the property value type or cast it to the expected type.
Instance Method Summary (collapse)
-
- (String) name
The property name.
Class Method Details
+ (::VertxSqlClient::PropertyKind) create(name = nil, type = nil)
Returns a property kind matching the provided
name
, the type
can be used to check the property value type or cast it to the expected type
20 21 22 23 24 25 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/property_kind.rb', line 20 def self.create(name=nil,type=nil) if name.class == String && type.class == Class && !block_given? return ::Vertx::Util::Utils.safe_create(Java::IoVertxSqlclient::PropertyKind.java_method(:create, [Java::java.lang.String.java_class,Java::JavaLang::Class.java_class]).call(name,::Vertx::Util::Utils.j_class_of(type)),::VertxSqlClient::PropertyKind, ::Vertx::Util::Utils.v_type_of(type)) end raise ArgumentError, "Invalid arguments when calling create(#{name},#{type})" end |
Instance Method Details
- (String) name
Returns the property name
27 28 29 30 31 32 |
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/property_kind.rb', line 27 def name if !block_given? return @j_del.java_method(:name, []).call() end raise ArgumentError, "Invalid arguments when calling name()" end |