class Dgrid::API::Link
Attributes
auto_linked[R]
descriptoion[RW]
left_guid[RW]
left_type[RW]
right_guid[RW]
right_type[RW]
Public Class Methods
db_fields()
click to toggle source
# File lib/dgrid/api/link.rb, line 22 def self.db_fields %w(id description auto_linked left_type left_guid left_id right_type right_guid right_id) end
new(options)
click to toggle source
Calls superclass method
Dgrid::API::Entity::new
# File lib/dgrid/api/link.rb, line 15 def initialize(options) parent_opts, my_opts = split_hash(options,[:id, :description]) super(parent_opts) @auto_linked = false set_members_from_hash(options) end
pluralized()
click to toggle source
# File lib/dgrid/api/link.rb, line 26 def self.pluralized 'links' end
Public Instance Methods
to_hash()
click to toggle source
# File lib/dgrid/api/link.rb, line 30 def to_hash h = { :description => description, :left_type => left_type, :left_guid => left_guid, :right_type => right_type, :right_guid => right_guid } end