Ahenk/opt/ahenk/base/model/Plugin.py

26 lines
537 B
Python
Raw Normal View History

2016-03-16 17:26:25 +02:00
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Author: Volkan Şahin <volkansah.in> <bm.volkansahin@gmail.com>
import json
class Plugin(object):
"""docstring for Plugin"""
def __init__(self,message):
self.plugin = message
@property
def id(self):
return self.plugin['id']
@property
def name(self):
return self.plugin['name']
@property
def version(self):
return self.plugin['version']
@property
def description(self):
return self.plugin['description']