Skip to content

Commit 34c4493

Browse files
committed
Add displayName to Organization
1 parent b4113ff commit 34c4493

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

lib/mackerel/organization.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
module Mackerel
22
class Organization
3-
attr_accessor :name
3+
attr_accessor :name, :displayName
44
def initialize(args = {})
55
@name = args["name"]
6+
@displayName = args["displayName"]
67
end
78

89
def to_h

spec/mackerel/organization_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
let(:organization) {
2626
{
2727
"name" => "HogeH",
28+
"displayName" => "Fuga",
2829
}
2930
}
3031

0 commit comments

Comments
 (0)