Module: WatchAttrAccessors
- Included in:
- Howcast::Client::Category, Howcast::Client::Homepage, Howcast::Client::Marker, Howcast::Client::Playlist, Howcast::Client::Type, Howcast::Client::User, Howcast::Client::Video
- Defined in:
- lib/howcast/client/utils.rb
Overview
utility modules for models (eg: video, marker, etc)
Instance Method Summary collapse
Instance Method Details
#attr_accessor(*args) ⇒ Object
4 5 6 7 8 |
# File 'lib/howcast/client/utils.rb', line 4 def attr_accessor(*args) super(*args) @attr_accessors ||= [] @attr_accessors += args end |
#attr_accessors ⇒ Object
10 11 12 |
# File 'lib/howcast/client/utils.rb', line 10 def attr_accessors @attr_accessors || [] end |