Class: Evalso::Language
- Inherits:
-
Object
- Object
- Evalso::Language
- Defined in:
- lib/evalso/language.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(id, hash) ⇒ Language
constructor
A new instance of Language.
- #inspect ⇒ Object
- #run(hash) ⇒ Object
Constructor Details
#initialize(id, hash) ⇒ Language
Returns a new instance of Language.
5 6 7 8 9 10 |
# File 'lib/evalso/language.rb', line 5 def initialize(id, hash) @hash = hash @id = id @name = hash['display_name'] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/evalso/language.rb', line 3 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/evalso/language.rb', line 3 def name @name end |
Instance Method Details
#inspect ⇒ Object
17 18 19 |
# File 'lib/evalso/language.rb', line 17 def inspect %[#<#{self.class.name} name=#{name.inspect} id=#{id.inspect}>] end |