class Ayadn::UserDescriptionObject

Attributes

entities[R]
input[R]
text[R]

Public Class Methods

new(hash) click to toggle source
# 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