Class: LJ::Base
- Inherits:
-
Object
- Object
- LJ::Base
- Defined in:
- lib/lj/base.rb
Instance Method Summary collapse
- #comunity(comynity_name, title, body, keywords) ⇒ Object
- #event(title, body, keywords) ⇒ Object
-
#initialize(auth) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(auth) ⇒ Base
Returns a new instance of Base.
4 5 6 |
# File 'lib/lj/base.rb', line 4 def initialize(auth) @client = auth end |
Instance Method Details
#comunity(comynity_name, title, body, keywords) ⇒ Object
13 14 15 16 17 |
# File 'lib/lj/base.rb', line 13 def comunity(comynity_name,title,body,keywords) = base_event(title,body,keywords) ["usejournal"]=comynity_name perform('postevent',) end |
#event(title, body, keywords) ⇒ Object
8 9 10 11 |
# File 'lib/lj/base.rb', line 8 def event(title,body,keywords) = base_event(title,body,keywords) perform('postevent',) end |