class Command

Attributes

address[R]
body[R]
method[R]

Public Class Methods

new(data = {}) click to toggle source
# File lib/lights/command.rb, line 5
def initialize(data = {})
  @address = data["address"]
  @body = data["body"]
  @method = data["method"]
end

Public Instance Methods

data() click to toggle source
# File lib/lights/command.rb, line 11
def data
  data = {}
  data["address"] = @address if @address
  data["body"] = @body if @body
  data["method"] = @method if @method
  data
end