class Dgrid::API::NamedEntity

Attributes

name[RW]

Public Class Methods

new(options) click to toggle source
Calls superclass method Dgrid::API::Entity::new
# File lib/dgrid/api/named_entity.rb, line 8
def initialize(options)
  parent_opts, my_opts = split_hash(options,[:id, :description])
  super(parent_opts)
  set_members_from_hash(my_opts)
end

Public Instance Methods

to_hash() click to toggle source
# File lib/dgrid/api/named_entity.rb, line 14
def to_hash
  { :name => name, :description => description }
end