Class: Bskyrb::ComAtprotoServerDescribeserver::Links

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#privacyPolicyObject

Returns the value of attribute privacyPolicy.



1862
1863
1864
# File 'lib/bskyrb/generated_classes.rb', line 1862

def privacyPolicy
  @privacyPolicy
end

#termsOfServiceObject

Returns the value of attribute termsOfService.



1864
1865
1866
# File 'lib/bskyrb/generated_classes.rb', line 1864

def termsOfService
  @termsOfService
end

Class Method Details

.from_hash(hash) ⇒ Object



1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
# File 'lib/bskyrb/generated_classes.rb', line 1866

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

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

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

  instance
end