Class: SearchApi::InstagramProfileOptions
- Inherits:
-
Object
- Object
- SearchApi::InstagramProfileOptions
- Includes:
- DynamicSchema::Definable, Helpers
- Defined in:
- lib/searchapi/instagram_profile_options.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}, api_options: nil) ⇒ InstagramProfileOptions
constructor
A new instance of InstagramProfileOptions.
- #to_h ⇒ Object
Methods included from Helpers
Constructor Details
#initialize(options = {}, api_options: nil) ⇒ InstagramProfileOptions
Returns a new instance of InstagramProfileOptions.
19 20 21 22 |
# File 'lib/searchapi/instagram_profile_options.rb', line 19 def initialize( = {}, api_options: nil ) = self.class.builder.build( || {} ) = .merge( ) if end |
Class Method Details
.build(options = nil, &block) ⇒ Object
11 12 13 |
# File 'lib/searchapi/instagram_profile_options.rb', line 11 def self.build( = nil, &block ) new( api_options: builder.build( , &block ) ) end |
.build!(options = nil, &block) ⇒ Object
15 16 17 |
# File 'lib/searchapi/instagram_profile_options.rb', line 15 def self.build!( = nil, &block ) new( api_options: builder.build!( , &block ) ) end |
Instance Method Details
#to_h ⇒ Object
24 25 26 27 28 |
# File 'lib/searchapi/instagram_profile_options.rb', line 24 def to_h result = .to_h result[ :engine ] = 'instagram_profile' result end |