Class: OpConnect::Item::File
- Inherits:
-
Object
- Object
- OpConnect::Item::File
- Defined in:
- lib/op_connect/item/file.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#content_path ⇒ Object
readonly
Returns the value of attribute content_path.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#section ⇒ Object
readonly
Returns the value of attribute section.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ File
constructor
A new instance of File.
Constructor Details
#initialize(options = {}) ⇒ File
Returns a new instance of File.
6 7 8 9 10 11 12 13 |
# File 'lib/op_connect/item/file.rb', line 6 def initialize( = {}) @id = ["id"] @name = ["name"] @size = ["size"] @content_path = ["content_path"] @content = ["content"] @section = Object.new(["section"]) end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
4 5 6 |
# File 'lib/op_connect/item/file.rb', line 4 def content @content end |
#content_path ⇒ Object (readonly)
Returns the value of attribute content_path.
4 5 6 |
# File 'lib/op_connect/item/file.rb', line 4 def content_path @content_path end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/op_connect/item/file.rb', line 4 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/op_connect/item/file.rb', line 4 def name @name end |
#section ⇒ Object (readonly)
Returns the value of attribute section.
4 5 6 |
# File 'lib/op_connect/item/file.rb', line 4 def section @section end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
4 5 6 |
# File 'lib/op_connect/item/file.rb', line 4 def size @size end |