class SyncSign::Display
Object that represents a SyncSign
display node.
Public Instance Methods
has_colour?()
click to toggle source
Return true if the node can display a colour other than black and white.
# File lib/syncsign/node-display.rb, line 16 def has_colour? ['D29R', 'D75'].include? @model end
render(template: nil, partial: false)
click to toggle source
Render a template to this display. @param template [Template] Template
to render to this display. @param partial [Boolean] Specifies that this should be a partial update, leaving any information already on the screen in place.
# File lib/syncsign/node-display.rb, line 10 def render(template: nil, partial: false) @service.api_call(type: :post, path: "/nodes/#{@id}/renders", data: template.to_s(partial: partial), node: self, direct: @service.direct_rendering?) end