Class: ActiveCMIS::AtomicType::Integer

Inherits:
CommonBase
  • Object
show all
Defined in:
lib/active_cmis/atomic_types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from CommonBase

#cmis2rb, #rb2cmis

Constructor Details

#initialize(min_value = nil, max_value = nil) ⇒ Integer

Returns a new instance of Integer.



80
81
82
# File 'lib/active_cmis/atomic_types.rb', line 80

def initialize(min_value = nil, max_value = nil)
  @min_value, @max_value = min_value, max_value
end

Instance Attribute Details

#max_valueObject (readonly)

Returns the value of attribute max_value.



79
80
81
# File 'lib/active_cmis/atomic_types.rb', line 79

def max_value
  @max_value
end

#min_valueObject (readonly)

Returns the value of attribute min_value.



79
80
81
# File 'lib/active_cmis/atomic_types.rb', line 79

def min_value
  @min_value
end

Instance Method Details

#can_handle?(value) ⇒ Boolean

Returns:



98
99
100
# File 'lib/active_cmis/atomic_types.rb', line 98

def can_handle?(value)
  value.respond_to?(:to_int)
end

#to_sObject



84
85
86
# File 'lib/active_cmis/atomic_types.rb', line 84

def to_s
  "Integer"
end