Method: CloudFS::Container#initialize
- Defined in:
- lib/cloudfs/container.rb
#initialize(rest_adapter, parent: nil, parent_state: nil, in_trash: false, in_share: false, **properties) ⇒ Container
Returns a new instance of Container.
15 16 17 18 19 20 21 |
# File 'lib/cloudfs/container.rb', line 15
def initialize(rest_adapter, parent: nil, parent_state: nil, in_trash: false,
in_share: false, ** properties)
fail RestAdapter::Errors::ArgumentError,
"Invalid item of type #{properties[:type]}" unless properties[:type] ==
'folder' || properties[:type] == 'root'
super
end
|