Class: Mass::SourceType
- Inherits:
-
BlackStack::Base
- Object
- BlackStack::Base
- Mass::SourceType
- Defined in:
- lib/base-line/source_type.rb
Instance Attribute Summary collapse
-
#profile_type ⇒ Object
NEVER EVER DOWNLOAD LINKEDIN/FACEBOOK IMAGES USING THE LOCAL IP ADDRESS.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ SourceType
constructor
A new instance of SourceType.
Constructor Details
#initialize(h = {}) ⇒ SourceType
Returns a new instance of SourceType.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/base-line/source_type.rb', line 9 def initialize(h={}) super(h) self.profile_type = Mass::ProfileType.page( id_account: h['id_account'], page: 1, limit: 1, filters: { name: h['profile_type'] } ).first.child_class_instance if h['profile_type'] end |
Instance Attribute Details
#profile_type ⇒ Object
NEVER EVER DOWNLOAD LINKEDIN/FACEBOOK IMAGES USING THE LOCAL IP ADDRESS. USE THE SAME BROWSER DRIVER AND JAVASCRIPT INSTEAD OF THE LOCAL IP ADDRESS. extend BlackStack::Storage # include the module with the class methods
7 8 9 |
# File 'lib/base-line/source_type.rb', line 7 def profile_type @profile_type end |
Class Method Details
.object_name ⇒ Object
21 22 23 |
# File 'lib/base-line/source_type.rb', line 21 def self.object_name 'source_type' end |