class Trello::PluginDatum
A file or url that is linked to a Trello
card
@!attribute id
@return [String]
@!attribute idPlugin
@return [String]
@!attribute scope
@return [String]
@!attribute idModel
@return [String]
@!attribute value
@return [String]
@!attribute access
@return [String]
Public Instance Methods
update_fields(fields)
click to toggle source
Supply a hash of stringkeyed data retrieved from the Trello
API representing an attachment.
# 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