Class: Ayadn::UserDescriptionObject

Inherits:
Object
  • Object
show all
Defined in:
lib/ayadn/user_object.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ UserDescriptionObject

Returns a new instance of UserDescriptionObject.



73
74
75
76
77
# File 'lib/ayadn/user_object.rb', line 73

def initialize hash
  @input = hash["description"].nil? ? {} : hash["description"]
  @text = @input["text"].nil? ? "" : @input["text"]
  @entities = EntitiesObject.new(@input)
end

Instance Attribute Details

#entitiesObject (readonly)

Returns the value of attribute entities.



71
72
73
# File 'lib/ayadn/user_object.rb', line 71

def entities
  @entities
end

#inputObject (readonly)

Returns the value of attribute input.



71
72
73
# File 'lib/ayadn/user_object.rb', line 71

def input
  @input
end

#textObject (readonly)

Returns the value of attribute text.



71
72
73
# File 'lib/ayadn/user_object.rb', line 71

def text
  @text
end