Class: Files::BundlePath

Inherits:
Object
  • Object
show all
Defined in:
lib/files.com/models/bundle_path.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}, options = {}) ⇒ BundlePath

Returns a new instance of BundlePath.



7
8
9
10
# File 'lib/files.com/models/bundle_path.rb', line 7

def initialize(attributes = {}, options = {})
  @attributes = attributes || {}
  @options = options || {}
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



5
6
7
# File 'lib/files.com/models/bundle_path.rb', line 5

def attributes
  @attributes
end

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/files.com/models/bundle_path.rb', line 5

def options
  @options
end

Instance Method Details

#pathObject

string - The path to the resource relative to filesystem. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.



18
19
20
# File 'lib/files.com/models/bundle_path.rb', line 18

def path
  @attributes[:path]
end

#recursiveObject

boolean - Allow access to subfolders content?



13
14
15
# File 'lib/files.com/models/bundle_path.rb', line 13

def recursive
  @attributes[:recursive]
end