Class: InfaktApiClient::User::Subscription
- Inherits:
-
Object
- Object
- InfaktApiClient::User::Subscription
- Defined in:
- lib/infakt_api_client/user.rb
Overview
Represents subscription information for an InfaktApiClient user
Instance Attribute Summary collapse
-
#days_until_expiration ⇒ Object
readonly
Returns the value of attribute days_until_expiration.
-
#expired_on ⇒ Object
readonly
Returns the value of attribute expired_on.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#user_type_symbol ⇒ Object
readonly
Returns the value of attribute user_type_symbol.
Instance Method Summary collapse
-
#initialize(data) ⇒ Subscription
constructor
A new instance of Subscription.
Constructor Details
#initialize(data) ⇒ Subscription
Returns a new instance of Subscription.
70 71 72 73 74 75 |
# File 'lib/infakt_api_client/user.rb', line 70 def initialize(data) @name = data["name"] @expired_on = data["expired_on"] @days_until_expiration = data["days_until_expiration"] @user_type_symbol = data["user_type_symbol"] end |
Instance Attribute Details
#days_until_expiration ⇒ Object (readonly)
Returns the value of attribute days_until_expiration.
68 69 70 |
# File 'lib/infakt_api_client/user.rb', line 68 def days_until_expiration @days_until_expiration end |
#expired_on ⇒ Object (readonly)
Returns the value of attribute expired_on.
68 69 70 |
# File 'lib/infakt_api_client/user.rb', line 68 def expired_on @expired_on end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
68 69 70 |
# File 'lib/infakt_api_client/user.rb', line 68 def name @name end |
#user_type_symbol ⇒ Object (readonly)
Returns the value of attribute user_type_symbol.
68 69 70 |
# File 'lib/infakt_api_client/user.rb', line 68 def user_type_symbol @user_type_symbol end |