class Beaver::QuickChip

Configuration settings for quick chip functionality.

Attributes

enabled[RW]

Determines if quick chip functionality is enabled on the terminal. @return [Boolean]

Public Class Methods

from_hash(hash) click to toggle source

Creates an instance of the object from a hash.

# File lib/beaver/models/quick_chip.rb, line 25
def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.
  enabled = hash['enabled']

  # Create object from extracted values.
  QuickChip.new(enabled)
end
names() click to toggle source

A mapping from model property names to API property names.

# File lib/beaver/models/quick_chip.rb, line 14
def self.names
  @_hash = {} if @_hash.nil?
  @_hash['enabled'] = 'enabled'
  @_hash
end
new(enabled = nil) click to toggle source
# File lib/beaver/models/quick_chip.rb, line 20
def initialize(enabled = nil)
  @enabled = enabled
end