Class: Astroapi::Categories::InsightsCategory
- Inherits:
-
BaseCategory
- Object
- BaseCategory
- Astroapi::Categories::InsightsCategory
- Defined in:
- lib/astroapi/categories/insights.rb
Overview
Insights category client with specialized sub-clients
Instance Attribute Summary collapse
-
#business ⇒ Object
readonly
Returns the value of attribute business.
-
#financial ⇒ Object
readonly
Returns the value of attribute financial.
-
#pet ⇒ Object
readonly
Returns the value of attribute pet.
-
#relationship ⇒ Object
readonly
Returns the value of attribute relationship.
-
#wellness ⇒ Object
readonly
Returns the value of attribute wellness.
Attributes inherited from BaseCategory
Instance Method Summary collapse
-
#discover(params = {}) ⇒ Hash
Discover available insights.
-
#initialize(http_client) ⇒ InsightsCategory
constructor
A new instance of InsightsCategory.
Constructor Details
#initialize(http_client) ⇒ InsightsCategory
Returns a new instance of InsightsCategory.
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/astroapi/categories/insights.rb', line 16 def initialize(http_client) super(http_client) # Initialize sub-clients @relationship = Insights::Relationship.new(http_client) @pet = Insights::Pet.new(http_client) @wellness = Insights::Wellness.new(http_client) @financial = Insights::Financial.new(http_client) @business = Insights::Business.new(http_client) end |
Instance Attribute Details
#business ⇒ Object (readonly)
Returns the value of attribute business.
14 15 16 |
# File 'lib/astroapi/categories/insights.rb', line 14 def business @business end |
#financial ⇒ Object (readonly)
Returns the value of attribute financial.
14 15 16 |
# File 'lib/astroapi/categories/insights.rb', line 14 def financial @financial end |
#pet ⇒ Object (readonly)
Returns the value of attribute pet.
14 15 16 |
# File 'lib/astroapi/categories/insights.rb', line 14 def pet @pet end |
#relationship ⇒ Object (readonly)
Returns the value of attribute relationship.
14 15 16 |
# File 'lib/astroapi/categories/insights.rb', line 14 def relationship @relationship end |
#wellness ⇒ Object (readonly)
Returns the value of attribute wellness.
14 15 16 |
# File 'lib/astroapi/categories/insights.rb', line 14 def wellness @wellness end |
Instance Method Details
#discover(params = {}) ⇒ Hash
Discover available insights
30 31 32 |
# File 'lib/astroapi/categories/insights.rb', line 30 def discover(params = {}) http.get(build_url, params: params) end |