Module: RubyHue::Model

Defined in:
lib/ruby_hue/model.rb

Constant Summary collapse

IncompleteImplementation =
Class.new(StandardError)

Instance Method Summary collapse

Instance Method Details

#model_nameObject



5
6
7
# File 'lib/ruby_hue/model.rb', line 5

def model_name
  raise IncompleteImplementation, "Please implement a #model_name method"
end

#persisted?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/ruby_hue/model.rb', line 13

def persisted?
  false
end

#resource_nameObject



17
18
19
# File 'lib/ruby_hue/model.rb', line 17

def resource_name
  raise IncompleteImplementation, "Please implement a #resource_name method"
end

#to_keyObject



9
10
11
# File 'lib/ruby_hue/model.rb', line 9

def to_key
  raise IncompleteImplementation, "Please implement a #to_key method"
end