Class: MHVHealthRecordsPolicy
- Inherits:
-
Struct
- Object
- Struct
- MHVHealthRecordsPolicy
- Defined in:
- app/policies/mhv_health_records_policy.rb
Constant Summary collapse
- BB_ACCOUNT_TYPES =
%w[Premium Advanced Basic].freeze
Instance Attribute Summary collapse
-
#mhv_health_records ⇒ Object
Returns the value of attribute mhv_health_records.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
Instance Attribute Details
#mhv_health_records ⇒ Object
Returns the value of attribute mhv_health_records
3 4 5 |
# File 'app/policies/mhv_health_records_policy.rb', line 3 def mhv_health_records @mhv_health_records end |
#user ⇒ Object
Returns the value of attribute user
3 4 5 |
# File 'app/policies/mhv_health_records_policy.rb', line 3 def user @user end |
Instance Method Details
#access? ⇒ Boolean
6 7 8 |
# File 'app/policies/mhv_health_records_policy.rb', line 6 def access? BB_ACCOUNT_TYPES.include?(user.mhv_account_type) end |