Class: PostProxy::Profile
Instance Attribute Summary collapse
-
#expires_at ⇒ Object
Returns the value of attribute expires_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#platform ⇒ Object
Returns the value of attribute platform.
-
#post_count ⇒ Object
Returns the value of attribute post_count.
-
#profile_group_id ⇒ Object
Returns the value of attribute profile_group_id.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ Profile
constructor
A new instance of Profile.
Methods inherited from Model
Constructor Details
#initialize(**attrs) ⇒ Profile
Returns a new instance of Profile.
24 25 26 27 28 29 |
# File 'lib/postproxy/types.rb', line 24 def initialize(**attrs) @expires_at = nil @post_count = 0 super @expires_at = parse_time(@expires_at) end |
Instance Attribute Details
#expires_at ⇒ Object
Returns the value of attribute expires_at.
22 23 24 |
# File 'lib/postproxy/types.rb', line 22 def expires_at @expires_at end |
#id ⇒ Object
Returns the value of attribute id.
22 23 24 |
# File 'lib/postproxy/types.rb', line 22 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
22 23 24 |
# File 'lib/postproxy/types.rb', line 22 def name @name end |
#platform ⇒ Object
Returns the value of attribute platform.
22 23 24 |
# File 'lib/postproxy/types.rb', line 22 def platform @platform end |
#post_count ⇒ Object
Returns the value of attribute post_count.
22 23 24 |
# File 'lib/postproxy/types.rb', line 22 def post_count @post_count end |
#profile_group_id ⇒ Object
Returns the value of attribute profile_group_id.
22 23 24 |
# File 'lib/postproxy/types.rb', line 22 def profile_group_id @profile_group_id end |
#status ⇒ Object
Returns the value of attribute status.
22 23 24 |
# File 'lib/postproxy/types.rb', line 22 def status @status end |