Class: InfaktApiClient::User::Subscription

Inherits:
Object
  • Object
show all
Defined in:
lib/infakt_api_client/user.rb

Overview

Represents subscription information for an InfaktApiClient user

Instance Attribute Summary collapse

Instance Method Summary collapse

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_expirationObject (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_onObject (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

#nameObject (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_symbolObject (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