Class: Ayadn::PostMentionObject

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ PostMentionObject

Returns a new instance of PostMentionObject.



34
35
36
37
38
39
40
41
42
# File 'lib/ayadn/post_object.rb', line 34

def initialize hash
  @input = hash
  @is_leading = @input["is_leading"]
  @pos = @input["pos"]
  @id = @input["id"]
  @len = @input["len"]
  @name = @input["name"]
  @amended_len = @input["amended_len"]
end

Instance Attribute Details

#amended_lenObject (readonly)

Returns the value of attribute amended_len.



32
33
34
# File 'lib/ayadn/post_object.rb', line 32

def amended_len
  @amended_len
end

#idObject (readonly)

Returns the value of attribute id.



32
33
34
# File 'lib/ayadn/post_object.rb', line 32

def id
  @id
end

#inputObject (readonly)

Returns the value of attribute input.



32
33
34
# File 'lib/ayadn/post_object.rb', line 32

def input
  @input
end

#is_leadingObject (readonly)

Returns the value of attribute is_leading.



32
33
34
# File 'lib/ayadn/post_object.rb', line 32

def is_leading
  @is_leading
end

#lenObject (readonly)

Returns the value of attribute len.



32
33
34
# File 'lib/ayadn/post_object.rb', line 32

def len
  @len
end

#nameObject (readonly)

Returns the value of attribute name.



32
33
34
# File 'lib/ayadn/post_object.rb', line 32

def name
  @name
end

#posObject (readonly)

Returns the value of attribute pos.



32
33
34
# File 'lib/ayadn/post_object.rb', line 32

def pos
  @pos
end