Class: KB::Fake::ApiState
- Inherits:
-
Object
- Object
- KB::Fake::ApiState
- Defined in:
- lib/kb/fake/api.rb
Instance Attribute Summary collapse
-
#breeds ⇒ Object
Returns the value of attribute breeds.
-
#consultations ⇒ Object
Returns the value of attribute consultations.
-
#hubspot_relationship ⇒ Object
Returns the value of attribute hubspot_relationship.
-
#petcontracts ⇒ Object
Returns the value of attribute petcontracts.
-
#petparents ⇒ Object
Returns the value of attribute petparents.
-
#pets ⇒ Object
Returns the value of attribute pets.
-
#plans ⇒ Object
Returns the value of attribute plans.
-
#products ⇒ Object
Returns the value of attribute products.
-
#referrals ⇒ Object
Returns the value of attribute referrals.
Instance Method Summary collapse
-
#initialize(petparents: [], pets: [], consultations: [], petcontracts: [], plans: [], breeds: [], products: [], hubspot_relationship: [], referrals: []) ⇒ ApiState
constructor
rubocop:disable Metrics/ParameterLists.
-
#to_snapshot ⇒ Object
rubocop:enable Metrics/ParameterLists.
Constructor Details
#initialize(petparents: [], pets: [], consultations: [], petcontracts: [], plans: [], breeds: [], products: [], hubspot_relationship: [], referrals: []) ⇒ ApiState
rubocop:disable Metrics/ParameterLists
15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/kb/fake/api.rb', line 15 def initialize(petparents: [], pets: [], consultations: [], petcontracts: [], plans: [], breeds: [], products: [], hubspot_relationship: [], referrals: []) @petparents = petparents @pets = pets @consultations = consultations @petcontracts = petcontracts @plans = plans @breeds = breeds @products = products @hubspot_relationship = hubspot_relationship @referrals = referrals end |
Instance Attribute Details
#breeds ⇒ Object
Returns the value of attribute breeds.
11 12 13 |
# File 'lib/kb/fake/api.rb', line 11 def breeds @breeds end |
#consultations ⇒ Object
Returns the value of attribute consultations.
11 12 13 |
# File 'lib/kb/fake/api.rb', line 11 def consultations @consultations end |
#hubspot_relationship ⇒ Object
Returns the value of attribute hubspot_relationship.
11 12 13 |
# File 'lib/kb/fake/api.rb', line 11 def hubspot_relationship @hubspot_relationship end |
#petcontracts ⇒ Object
Returns the value of attribute petcontracts.
11 12 13 |
# File 'lib/kb/fake/api.rb', line 11 def petcontracts @petcontracts end |
#petparents ⇒ Object
Returns the value of attribute petparents.
11 12 13 |
# File 'lib/kb/fake/api.rb', line 11 def petparents @petparents end |
#pets ⇒ Object
Returns the value of attribute pets.
11 12 13 |
# File 'lib/kb/fake/api.rb', line 11 def pets @pets end |
#plans ⇒ Object
Returns the value of attribute plans.
11 12 13 |
# File 'lib/kb/fake/api.rb', line 11 def plans @plans end |
#products ⇒ Object
Returns the value of attribute products.
11 12 13 |
# File 'lib/kb/fake/api.rb', line 11 def products @products end |
#referrals ⇒ Object
Returns the value of attribute referrals.
11 12 13 |
# File 'lib/kb/fake/api.rb', line 11 def referrals @referrals end |
Instance Method Details
#to_snapshot ⇒ Object
rubocop:enable Metrics/ParameterLists
29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/kb/fake/api.rb', line 29 def to_snapshot { pets: @pets.clone, petparents: @petparents.clone, consultations: @consultations.clone, petcontracts: @petcontracts.clone, plans: @plans.clone, breeds: @breeds.clone, products: @products.clone, hubspot_relationship: @hubspot_relationship.clone, referrals: @referrals.clone } end |