Class: AsposeTasksCloud::TaskItem
- Inherits:
-
BaseObject
- Object
- BaseObject
- AsposeTasksCloud::TaskItem
- Defined in:
- lib/aspose_tasks_cloud/models/task_item.rb
Instance Attribute Summary collapse
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#finish ⇒ Object
Returns the value of attribute finish.
-
#id ⇒ Object
Returns the value of attribute id.
-
#link ⇒ Object
Returns the value of attribute link.
-
#name ⇒ Object
Returns the value of attribute name.
-
#start ⇒ Object
Returns the value of attribute start.
-
#uid ⇒ Object
Returns the value of attribute uid.
Class Method Summary collapse
-
.attribute_map ⇒ Object
attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ TaskItem
constructor
A new instance of TaskItem.
Methods inherited from BaseObject
#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s
Constructor Details
#initialize(attributes = {}) ⇒ TaskItem
Returns a new instance of TaskItem.
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/aspose_tasks_cloud/models/task_item.rb', line 47 def initialize(attributes = {}) return if !attributes.is_a?(Hash) || attributes.empty? # convert string to symbol for hash key attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} if attributes[:'Link'] self.link = attributes[:'Link'] end if attributes[:'Uid'] self.uid = attributes[:'Uid'] end if attributes[:'Id'] self.id = attributes[:'Id'] end if attributes[:'Name'] self.name = attributes[:'Name'] end if attributes[:'Start'] self.start = attributes[:'Start'] end if attributes[:'Finish'] self.finish = attributes[:'Finish'] end if attributes[:'Duration'] self.duration = attributes[:'Duration'] end end |
Instance Attribute Details
#duration ⇒ Object
Returns the value of attribute duration.
4 5 6 |
# File 'lib/aspose_tasks_cloud/models/task_item.rb', line 4 def duration @duration end |
#finish ⇒ Object
Returns the value of attribute finish.
4 5 6 |
# File 'lib/aspose_tasks_cloud/models/task_item.rb', line 4 def finish @finish end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/aspose_tasks_cloud/models/task_item.rb', line 4 def id @id end |
#link ⇒ Object
Returns the value of attribute link.
4 5 6 |
# File 'lib/aspose_tasks_cloud/models/task_item.rb', line 4 def link @link end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/aspose_tasks_cloud/models/task_item.rb', line 4 def name @name end |
#start ⇒ Object
Returns the value of attribute start.
4 5 6 |
# File 'lib/aspose_tasks_cloud/models/task_item.rb', line 4 def start @start end |
#uid ⇒ Object
Returns the value of attribute uid.
4 5 6 |
# File 'lib/aspose_tasks_cloud/models/task_item.rb', line 4 def uid @uid end |
Class Method Details
.attribute_map ⇒ Object
attribute mapping from ruby-style variable name to JSON key
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/aspose_tasks_cloud/models/task_item.rb', line 6 def self.attribute_map { # :'link' => :'Link', # :'uid' => :'Uid', # :'id' => :'Id', # :'name' => :'Name', # :'start' => :'Start', # :'finish' => :'Finish', # :'duration' => :'Duration' } end |
.swagger_types ⇒ Object
attribute type
34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/aspose_tasks_cloud/models/task_item.rb', line 34 def self.swagger_types { :'link' => :'Link', :'uid' => :'Integer', :'id' => :'Integer', :'name' => :'String', :'start' => :'String', :'finish' => :'String', :'duration' => :'String' } end |