Class: RLMProperty
- Inherits:
-
Object
- Object
- RLMProperty
- Defined in:
- lib/project/realm/property.rb
Instance Method Summary collapse
- #array? ⇒ Boolean
- #bool? ⇒ Boolean
- #data? ⇒ Boolean
- #date? ⇒ Boolean
- #double? ⇒ Boolean
- #float? ⇒ Boolean
-
#int? ⇒ Boolean
Primitives.
- #mixed? ⇒ Boolean
- #number? ⇒ Boolean
-
#object? ⇒ Boolean
Arrays/Linked types.
-
#string? ⇒ Boolean
Objects.
- #type_name ⇒ Object
Instance Method Details
#array? ⇒ Boolean
49 50 51 |
# File 'lib/project/realm/property.rb', line 49 def array? type == RLMPropertyTypeArray end |
#bool? ⇒ Boolean
9 10 11 |
# File 'lib/project/realm/property.rb', line 9 def bool? type == RLMPropertyTypeBool end |
#data? ⇒ Boolean
31 32 33 |
# File 'lib/project/realm/property.rb', line 31 def data? type == RLMPropertyTypeData end |
#date? ⇒ Boolean
39 40 41 |
# File 'lib/project/realm/property.rb', line 39 def date? type == RLMPropertyTypeDate end |
#double? ⇒ Boolean
17 18 19 |
# File 'lib/project/realm/property.rb', line 17 def double? type == RLMPropertyTypeDouble end |
#float? ⇒ Boolean
13 14 15 |
# File 'lib/project/realm/property.rb', line 13 def float? type == RLMPropertyTypeFloat end |
#int? ⇒ Boolean
Primitives
5 6 7 |
# File 'lib/project/realm/property.rb', line 5 def int? type == RLMPropertyTypeInt end |
#mixed? ⇒ Boolean
35 36 37 |
# File 'lib/project/realm/property.rb', line 35 def mixed? type == RLMPropertyTypeAny end |
#number? ⇒ Boolean
21 22 23 |
# File 'lib/project/realm/property.rb', line 21 def number? int? || float? || double? end |
#object? ⇒ Boolean
Arrays/Linked types
45 46 47 |
# File 'lib/project/realm/property.rb', line 45 def object? type == RLMPropertyTypeObject end |
#string? ⇒ Boolean
Objects
27 28 29 |
# File 'lib/project/realm/property.rb', line 27 def string? type == RLMPropertyTypeString end |
#type_name ⇒ Object
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/project/realm/property.rb', line 53 def type_name if int? :int elsif bool? :bool elsif float? :float elsif double? :double elsif string? :string elsif data? :data elsif mixed? :mixed elsif date? :date elsif object? :object elsif array? :array else nil end end |