Class: Trello::PluginDatum

Inherits:
BasicData show all
Defined in:
lib/trello/plugin_datum.rb

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

Constructor Details

This class inherits a constructor from Trello::BasicData

Instance Attribute Details

#accessString

Returns:



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
  # Update the fields of a plugin.
  register_attributes :id, :idPlugin, :scope, :idModel, :value, :access


  # Supply a hash of stringkeyed data retrieved from the Trello API representing
  # an attachment.
  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

#idString

Returns:



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
  # Update the fields of a plugin.
  register_attributes :id, :idPlugin, :scope, :idModel, :value, :access


  # Supply a hash of stringkeyed data retrieved from the Trello API representing
  # an attachment.
  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

#idModelString

Returns:



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
  # Update the fields of a plugin.
  register_attributes :id, :idPlugin, :scope, :idModel, :value, :access


  # Supply a hash of stringkeyed data retrieved from the Trello API representing
  # an attachment.
  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

#idPluginString

Returns:



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
  # Update the fields of a plugin.
  register_attributes :id, :idPlugin, :scope, :idModel, :value, :access


  # Supply a hash of stringkeyed data retrieved from the Trello API representing
  # an attachment.
  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

#scopeString

Returns:



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
  # Update the fields of a plugin.
  register_attributes :id, :idPlugin, :scope, :idModel, :value, :access


  # Supply a hash of stringkeyed data retrieved from the Trello API representing
  # an attachment.
  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

#valueString

Returns:



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
  # Update the fields of a plugin.
  register_attributes :id, :idPlugin, :scope, :idModel, :value, :access


  # Supply a hash of stringkeyed data retrieved from the Trello API representing
  # an attachment.
  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