Class: OSXDict::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/osx_dict.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject

Returns the value of attribute body.



68
69
70
# File 'lib/osx_dict.rb', line 68

def body
  @body
end

#idObject

Returns the value of attribute id.



68
69
70
# File 'lib/osx_dict.rb', line 68

def id
  @id
end

#indexesObject



77
78
79
# File 'lib/osx_dict.rb', line 77

def indexes
  @indexes ||= []
end

#titleObject

Returns the value of attribute title.



68
69
70
# File 'lib/osx_dict.rb', line 68

def title
  @title
end