Class: Vk::Group
Instance Attribute Summary
Attributes inherited from Base
#attributes
Instance Method Summary
collapse
Methods inherited from Base
#fields, find, #id, #id=, #identity_map, inherited, #initialize, #inspect, #key_field, #loader, #logger, method_missing, #method_missing, #read_attribute, #respond_to_missing?, #to_hash
Constructor Details
This class inherits a constructor from Vk::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class Vk::Base
Instance Method Details
28
29
30
|
# File 'lib/vk/group.rb', line 28
def albums
@albums ||= loader.get_albums("-#{id}").all
end
|
33
34
35
|
# File 'lib/vk/group.rb', line 33
def audio_albums
@audio_albums ||= loader.get_audio_albums("-#{id}").all
end
|
#finish_at ⇒ Time
23
24
25
|
# File 'lib/vk/group.rb', line 23
def finish_at
Time.at(finish_date) if finish_date
end
|
#get_wall(options = {}) ⇒ Object
37
38
39
|
# File 'lib/vk/group.rb', line 37
def get_wall(options = {})
loader.get_wall("-#{id}", options)
end
|
#start_at ⇒ Time
18
19
20
|
# File 'lib/vk/group.rb', line 18
def start_at
Time.at(start_date) if start_date
end
|
#to_s ⇒ Object
13
14
15
|
# File 'lib/vk/group.rb', line 13
def to_s
name
end
|