Class: OSXDict::Entry
- Inherits:
-
Object
- Object
- OSXDict::Entry
- Defined in:
- lib/osx_dict.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#id ⇒ Object
Returns the value of attribute id.
- #indexes ⇒ Object
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(attrs) ⇒ Entry
constructor
A new instance of Entry.
Constructor Details
#initialize(attrs) ⇒ Entry
Returns a new instance of Entry.
71 72 73 74 75 |
# File 'lib/osx_dict.rb', line 71 def initialize(attrs) attrs.each do |key, value| __send__(:"#{key}=", value) end end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
68 69 70 |
# File 'lib/osx_dict.rb', line 68 def body @body end |
#id ⇒ Object
Returns the value of attribute id.
68 69 70 |
# File 'lib/osx_dict.rb', line 68 def id @id end |
#indexes ⇒ Object
77 78 79 |
# File 'lib/osx_dict.rb', line 77 def indexes @indexes ||= [] end |
#title ⇒ Object
Returns the value of attribute title.
68 69 70 |
# File 'lib/osx_dict.rb', line 68 def title @title end |