Class: Ayadn::PostHashtagObject

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ PostHashtagObject

Returns a new instance of PostHashtagObject.



49
50
51
52
53
54
55
# File 'lib/ayadn/post_object.rb', line 49

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

Instance Attribute Details

#amended_lenObject (readonly)

Returns the value of attribute amended_len.



47
48
49
# File 'lib/ayadn/post_object.rb', line 47

def amended_len
  @amended_len
end

#inputObject (readonly)

Returns the value of attribute input.



47
48
49
# File 'lib/ayadn/post_object.rb', line 47

def input
  @input
end

#lenObject (readonly)

Returns the value of attribute len.



47
48
49
# File 'lib/ayadn/post_object.rb', line 47

def len
  @len
end

#nameObject (readonly)

Returns the value of attribute name.



47
48
49
# File 'lib/ayadn/post_object.rb', line 47

def name
  @name
end

#posObject (readonly)

Returns the value of attribute pos.



47
48
49
# File 'lib/ayadn/post_object.rb', line 47

def pos
  @pos
end