Class: Trello::PluginDatum
Overview
A file or url that is linked to a Trello card
Instance Attribute Summary collapse
Attributes inherited from BasicData
#client
Instance Method Summary
collapse
Methods inherited from BasicData
#==, client, create, find, #initialize, many, one, parse, parse_many, path_name, #refresh!, register_attributes, save
Methods included from JsonUtils
included
Instance Attribute Details
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# File 'lib/trello/plugin_datum.rb', line 16
class PluginDatum < BasicData
register_attributes :id, :idPlugin, :scope, :idModel, :value, :access
def update_fields(fields)
attributes[:id] = fields['id']
attributes[:idPlugin] = fields['idPlugin']
attributes[:scope] = fields['scope']
attributes[:value] = JSON.parse fields['value']
attributes[:idModel] = fields['idModel']
attributes[:access] = fields['access']
self
end
end
|
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# File 'lib/trello/plugin_datum.rb', line 16
class PluginDatum < BasicData
register_attributes :id, :idPlugin, :scope, :idModel, :value, :access
def update_fields(fields)
attributes[:id] = fields['id']
attributes[:idPlugin] = fields['idPlugin']
attributes[:scope] = fields['scope']
attributes[:value] = JSON.parse fields['value']
attributes[:idModel] = fields['idModel']
attributes[:access] = fields['access']
self
end
end
|
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# File 'lib/trello/plugin_datum.rb', line 16
class PluginDatum < BasicData
register_attributes :id, :idPlugin, :scope, :idModel, :value, :access
def update_fields(fields)
attributes[:id] = fields['id']
attributes[:idPlugin] = fields['idPlugin']
attributes[:scope] = fields['scope']
attributes[:value] = JSON.parse fields['value']
attributes[:idModel] = fields['idModel']
attributes[:access] = fields['access']
self
end
end
|
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# File 'lib/trello/plugin_datum.rb', line 16
class PluginDatum < BasicData
register_attributes :id, :idPlugin, :scope, :idModel, :value, :access
def update_fields(fields)
attributes[:id] = fields['id']
attributes[:idPlugin] = fields['idPlugin']
attributes[:scope] = fields['scope']
attributes[:value] = JSON.parse fields['value']
attributes[:idModel] = fields['idModel']
attributes[:access] = fields['access']
self
end
end
|
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# File 'lib/trello/plugin_datum.rb', line 16
class PluginDatum < BasicData
register_attributes :id, :idPlugin, :scope, :idModel, :value, :access
def update_fields(fields)
attributes[:id] = fields['id']
attributes[:idPlugin] = fields['idPlugin']
attributes[:scope] = fields['scope']
attributes[:value] = JSON.parse fields['value']
attributes[:idModel] = fields['idModel']
attributes[:access] = fields['access']
self
end
end
|
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# File 'lib/trello/plugin_datum.rb', line 16
class PluginDatum < BasicData
register_attributes :id, :idPlugin, :scope, :idModel, :value, :access
def update_fields(fields)
attributes[:id] = fields['id']
attributes[:idPlugin] = fields['idPlugin']
attributes[:scope] = fields['scope']
attributes[:value] = JSON.parse fields['value']
attributes[:idModel] = fields['idModel']
attributes[:access] = fields['access']
self
end
end
|
Instance Method Details
#update_fields(fields) ⇒ Object
Supply a hash of stringkeyed data retrieved from the Trello API representing an attachment.
23
24
25
26
27
28
29
30
31
|
# File 'lib/trello/plugin_datum.rb', line 23
def update_fields(fields)
attributes[:id] = fields['id']
attributes[:idPlugin] = fields['idPlugin']
attributes[:scope] = fields['scope']
attributes[:value] = JSON.parse fields['value']
attributes[:idModel] = fields['idModel']
attributes[:access] = fields['access']
self
end
|