Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/orion/orion_objects/array.rb
Instance Method Summary collapse
Instance Method Details
#one? ⇒ Boolean
8 9 10 |
# File 'lib/orion/orion_objects/array.rb', line 8 def one? self.size == 1 ? true : false end |
#to_orion ⇒ Object
4 5 6 |
# File 'lib/orion/orion_objects/array.rb', line 4 def to_orion self.empty? ? OpenStruct.new(success: false, count: 0, files: self) : OpenStruct.new(success: true, count: self.size, files: self) end |