Class: Decidim::DummyResources::OfficialAuthorPresenter
- Inherits:
-
Object
- Object
- Decidim::DummyResources::OfficialAuthorPresenter
show all
- Defined in:
- lib/decidim/dev/test/rspec_support/component.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
195
196
197
198
199
200
201
202
203
|
# File 'lib/decidim/dev/test/rspec_support/component.rb', line 195
def method_missing(method, *args)
if method.to_s.ends_with?("?")
false
elsif [:avatar_url, :profile_path, :badge, :followers_count, :cache_key_with_version].include?(method)
""
else
super
end
end
|
Instance Method Details
#deleted? ⇒ Boolean
187
188
189
|
# File 'lib/decidim/dev/test/rspec_support/component.rb', line 187
def deleted?
false
end
|
#name ⇒ Object
179
180
181
|
# File 'lib/decidim/dev/test/rspec_support/component.rb', line 179
def name
self.class.name
end
|
#nickname ⇒ Object
183
184
185
|
# File 'lib/decidim/dev/test/rspec_support/component.rb', line 183
def nickname
UserBaseEntity.nicknamize(name)
end
|
#respond_to_missing? ⇒ Boolean
191
192
193
|
# File 'lib/decidim/dev/test/rspec_support/component.rb', line 191
def respond_to_missing?(*)
true
end
|