Class: PostProxy::Profile

Inherits:
Model
  • Object
show all
Defined in:
lib/postproxy/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#to_h

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_atObject

Returns the value of attribute expires_at.



22
23
24
# File 'lib/postproxy/types.rb', line 22

def expires_at
  @expires_at
end

#idObject

Returns the value of attribute id.



22
23
24
# File 'lib/postproxy/types.rb', line 22

def id
  @id
end

#nameObject

Returns the value of attribute name.



22
23
24
# File 'lib/postproxy/types.rb', line 22

def name
  @name
end

#platformObject

Returns the value of attribute platform.



22
23
24
# File 'lib/postproxy/types.rb', line 22

def platform
  @platform
end

#post_countObject

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_idObject

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

#statusObject

Returns the value of attribute status.



22
23
24
# File 'lib/postproxy/types.rb', line 22

def status
  @status
end