Class: Files::BundlePath
- Inherits:
-
Object
- Object
- Files::BundlePath
- Defined in:
- lib/files.com/models/bundle_path.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(attributes = {}, options = {}) ⇒ BundlePath
constructor
A new instance of BundlePath.
-
#path ⇒ Object
string - The path to the resource relative to filesystem.
-
#recursive ⇒ Object
boolean - Allow access to subfolders content?.
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 = {}, = {}) @attributes = attributes || {} @options = || {} end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
5 6 7 |
# File 'lib/files.com/models/bundle_path.rb', line 5 def attributes @attributes end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/files.com/models/bundle_path.rb', line 5 def @options end |
Instance Method Details
#path ⇒ Object
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 |
#recursive ⇒ Object
boolean - Allow access to subfolders content?
13 14 15 |
# File 'lib/files.com/models/bundle_path.rb', line 13 def recursive @attributes[:recursive] end |