class Pastee::Syntax

Attributes

full_name[R]

@return [String]

id[R]

@return [Integer]

short_name[R]

@return [String]

Public Class Methods

new(opts = {}) click to toggle source

Creates a new object representing a Syntax on the Pastee website. @param opts [Hash<String, Object>] The options hash. This is usually obtained by the Pastee API. @option opts [Integer] 'id' The integer ID for this syntax. @option opts [String] 'short' The shortened name for the syntax. @option opts [String] 'name' The full name for the syntax.

# File lib/pastee/syntax.rb, line 17
def initialize(opts = {})
  @id = opts['id']
  @short_name = opts['short']
  @full_name = opts['name']
end