Class: LJ::Base

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

Instance Method Summary collapse

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)
  options = base_event(title,body,keywords)
  options["usejournal"]=comynity_name
  perform('postevent',options)
end

#event(title, body, keywords) ⇒ Object



8
9
10
11
# File 'lib/lj/base.rb', line 8

def event(title,body,keywords)
  options = base_event(title,body,keywords)
  perform('postevent',options)
end