Class: Bskyrb::AppBskyActorDefs::ViewerState

Inherits:
Object
  • Object
show all
Defined in:
lib/bskyrb/generated_classes.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#blockedByObject

Returns the value of attribute blockedBy.



146
147
148
# File 'lib/bskyrb/generated_classes.rb', line 146

def blockedBy
  @blockedBy
end

#blockingObject

Returns the value of attribute blocking.



148
149
150
# File 'lib/bskyrb/generated_classes.rb', line 148

def blocking
  @blocking
end

#followedByObject

Returns the value of attribute followedBy.



152
153
154
# File 'lib/bskyrb/generated_classes.rb', line 152

def followedBy
  @followedBy
end

#followingObject

Returns the value of attribute following.



150
151
152
# File 'lib/bskyrb/generated_classes.rb', line 150

def following
  @following
end

#mutedObject

Returns the value of attribute muted.



142
143
144
# File 'lib/bskyrb/generated_classes.rb', line 142

def muted
  @muted
end

#mutedByListObject

Returns the value of attribute mutedByList.



144
145
146
# File 'lib/bskyrb/generated_classes.rb', line 144

def mutedByList
  @mutedByList
end

Class Method Details

.from_hash(hash) ⇒ Object



154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
# File 'lib/bskyrb/generated_classes.rb', line 154

def self.from_hash(hash)
  # httparty-returned string-keyed hash
  instance = new

  instance.send(:muted=, hash["muted"])

  instance.send(:mutedByList=, hash["mutedByList"])

  instance.send(:blockedBy=, hash["blockedBy"])

  instance.send(:blocking=, hash["blocking"])

  instance.send(:following=, hash["following"])

  instance.send(:followedBy=, hash["followedBy"])

  instance
end