Class: Bskyrb::AppBskyActorDefs::ProfileViewDetailed

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#avatarObject

Returns the value of attribute avatar.



91
92
93
# File 'lib/bskyrb/generated_classes.rb', line 91

def avatar
  @avatar
end

Returns the value of attribute banner.



93
94
95
# File 'lib/bskyrb/generated_classes.rb', line 93

def banner
  @banner
end

#descriptionObject

Returns the value of attribute description.



89
90
91
# File 'lib/bskyrb/generated_classes.rb', line 89

def description
  @description
end

#didObject

Returns the value of attribute did.



83
84
85
# File 'lib/bskyrb/generated_classes.rb', line 83

def did
  @did
end

#displayNameObject

Returns the value of attribute displayName.



87
88
89
# File 'lib/bskyrb/generated_classes.rb', line 87

def displayName
  @displayName
end

#followersCountObject

Returns the value of attribute followersCount.



95
96
97
# File 'lib/bskyrb/generated_classes.rb', line 95

def followersCount
  @followersCount
end

#followsCountObject

Returns the value of attribute followsCount.



97
98
99
# File 'lib/bskyrb/generated_classes.rb', line 97

def followsCount
  @followsCount
end

#handleObject

Returns the value of attribute handle.



85
86
87
# File 'lib/bskyrb/generated_classes.rb', line 85

def handle
  @handle
end

#indexedAtObject

Returns the value of attribute indexedAt.



101
102
103
# File 'lib/bskyrb/generated_classes.rb', line 101

def indexedAt
  @indexedAt
end

#labelsObject

Returns the value of attribute labels.



105
106
107
# File 'lib/bskyrb/generated_classes.rb', line 105

def labels
  @labels
end

#postsCountObject

Returns the value of attribute postsCount.



99
100
101
# File 'lib/bskyrb/generated_classes.rb', line 99

def postsCount
  @postsCount
end

#viewerObject

Returns the value of attribute viewer.



103
104
105
# File 'lib/bskyrb/generated_classes.rb', line 103

def viewer
  @viewer
end

Class Method Details

.from_hash(hash) ⇒ Object



107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# File 'lib/bskyrb/generated_classes.rb', line 107

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

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

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

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

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

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

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

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

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

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

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

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

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

  instance
end