Class: Desmoservice::Terms
Instance Method Summary collapse
- #[](index) ⇒ Object
- #each ⇒ Object
-
#initialize ⇒ Terms
constructor
A new instance of Terms.
- #length ⇒ Object
- #parse_json(json_string) ⇒ Object
Constructor Details
#initialize ⇒ Terms
Returns a new instance of Terms.
5 6 7 |
# File 'lib/terms.rb', line 5 def initialize() @array = Array.new end |
Instance Method Details
#[](index) ⇒ Object
26 27 28 |
# File 'lib/terms.rb', line 26 def [](index) return @array[index] end |
#each ⇒ Object
16 17 18 19 20 |
# File 'lib/terms.rb', line 16 def each @array.each do |v| yield(v) end end |
#length ⇒ Object
22 23 24 |
# File 'lib/terms.rb', line 22 def length return @array.length end |