class Trello::CustomField

Attributes

attributes[RW]

Public Class Methods

new(attrs = {}) click to toggle source
# File lib/trello-lite/custom_field.rb, line 5
def initialize(attrs = {})
  @attributes = attrs
end

Public Instance Methods

delete() click to toggle source
# File lib/trello-lite/custom_field.rb, line 21
def delete
  url = "https://api.trello.com/1/customfields/#{id}?" + Trello.credentials
  response = HTTParty.delete(url, format: :plain)
  JSON.parse(response, symbolize_names: true)
end
id() click to toggle source
# File lib/trello-lite/custom_field.rb, line 9
def id
  attributes[:id]
end
name() click to toggle source
# File lib/trello-lite/custom_field.rb, line 17
def name
  attributes[:name]
end
type() click to toggle source
# File lib/trello-lite/custom_field.rb, line 13
def type
  attributes[:type]
end