Class: Vk::DSL::Newsfeed::SearchItem

Inherits:
Base
  • Object
show all
Defined in:
lib/vk/dsl/newsfeed.rb

Instance Attribute Summary collapse

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 Attribute Details

#search_resultSearchResult

Returns:



20
21
22
# File 'lib/vk/dsl/newsfeed.rb', line 20

def search_result
  @search_result
end

Instance Method Details

#as_search_result_of(search_result) ⇒ Object



22
23
24
25
# File 'lib/vk/dsl/newsfeed.rb', line 22

def as_search_result_of(search_result)
  self.search_result = search_result
  self
end

#fromVk::User, Vk::Group

Returns:



33
34
35
# File 'lib/vk/dsl/newsfeed.rb', line 33

def from
  find_group_or_user(from_id)
end

#ownerVk::User, Vk::Group

Returns:



28
29
30
# File 'lib/vk/dsl/newsfeed.rb', line 28

def owner
  find_group_or_user(owner_id)
end

#signerVk::User

Returns:



38
39
40
# File 'lib/vk/dsl/newsfeed.rb', line 38

def signer
  find_group_or_user(signer_id)
end

#timeObject



42
43
44
# File 'lib/vk/dsl/newsfeed.rb', line 42

def time
  Time.at(date)
end