Class: Hindbaer::Plugin::Base
- Inherits:
-
Object
- Object
- Hindbaer::Plugin::Base
show all
- Defined in:
- lib/hindbaer/plugin/base.rb
Instance Method Summary
collapse
Constructor Details
#initialize(fragment) ⇒ Base
Returns a new instance of Base.
5
6
7
|
# File 'lib/hindbaer/plugin/base.rb', line 5
def initialize(fragment)
@doc = fragment
end
|
Instance Method Details
#id ⇒ Object
9
10
11
|
# File 'lib/hindbaer/plugin/base.rb', line 9
def id
@doc['Id'].to_i
end
|
#name ⇒ Object
13
14
15
|
# File 'lib/hindbaer/plugin/base.rb', line 13
def name
@doc['Name']
end
|
#uid ⇒ Object
17
18
19
|
# File 'lib/hindbaer/plugin/base.rb', line 17
def uid
@doc['UID']
end
|