Class: Pastee::Syntax
- Inherits:
-
Object
- Object
- Pastee::Syntax
- Defined in:
- lib/pastee/syntax.rb
Instance Attribute Summary collapse
- #full_name ⇒ String readonly
- #id ⇒ Integer readonly
- #short_name ⇒ String readonly
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Syntax
constructor
Creates a new object representing a Syntax on the Pastee website.
Constructor Details
#initialize(opts = {}) ⇒ Syntax
Creates a new object representing a Syntax on the Pastee website.
17 18 19 20 21 |
# File 'lib/pastee/syntax.rb', line 17 def initialize(opts = {}) @id = opts['id'] @short_name = opts['short'] @full_name = opts['name'] end |
Instance Attribute Details
#full_name ⇒ String (readonly)
10 11 12 |
# File 'lib/pastee/syntax.rb', line 10 def full_name @full_name end |
#id ⇒ Integer (readonly)
4 5 6 |
# File 'lib/pastee/syntax.rb', line 4 def id @id end |
#short_name ⇒ String (readonly)
7 8 9 |
# File 'lib/pastee/syntax.rb', line 7 def short_name @short_name end |